From 0266f7a30105f4ca5dd50f3234e9191733f8a803 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Wed, 24 Jul 2024 15:01:08 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug87377?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/lang/workCenter/en.js | 3 ++- src/common/lang/workCenter/zh.js | 3 ++- .../marketListReleaseProcess/modules/BaseInfoForm.vue | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/common/lang/workCenter/en.js b/src/common/lang/workCenter/en.js index fc5dbc1..945ca9a 100644 --- a/src/common/lang/workCenter/en.js +++ b/src/common/lang/workCenter/en.js @@ -70,7 +70,8 @@ module.exports = { masterControlDepartmentProfessionalModule: 'Master control department professional module', relatedDepartment: 'Related department', associateDepartmentSpecializedModules: 'Associate department specialized modules', - requirementType: 'Requirement type' + requirementType: 'Requirement type', + noData: 'There is no data in the list. Please re-select the list and launch' }, // 标准解读流程 diff --git a/src/common/lang/workCenter/zh.js b/src/common/lang/workCenter/zh.js index f427783..c96f68c 100644 --- a/src/common/lang/workCenter/zh.js +++ b/src/common/lang/workCenter/zh.js @@ -70,7 +70,8 @@ module.exports = { masterControlDepartmentProfessionalModule: '主控部门专业模块', relatedDepartment: '关联部门', associateDepartmentSpecializedModules: '关联部门专业模块', - requirementType: '要求类型' + requirementType: '要求类型', + noData: '清单下没有数据,请重新选择清单后发起' }, // 标准解读流程 diff --git a/src/views/workCenter/marketListReleaseProcess/modules/BaseInfoForm.vue b/src/views/workCenter/marketListReleaseProcess/modules/BaseInfoForm.vue index b9b5770..21d85b3 100644 --- a/src/views/workCenter/marketListReleaseProcess/modules/BaseInfoForm.vue +++ b/src/views/workCenter/marketListReleaseProcess/modules/BaseInfoForm.vue @@ -388,10 +388,13 @@ export default { if (this.currentNode === 1) { await this.$refs.ruleForm.validate(async valid => { await this.$refs.userRuleForm.validate(userValid => { - if (valid && userValid) { + if (valid && userValid && this.dataSource.length > 0) { data = Object.assign({}, this.formInline, this.userFormInline) data.country = data.country.map(item => item.value).join(',') data.list = JSON.parse(JSON.stringify(this.dataSource)) + } else if (this.dataSource.length <= 0) { + this.$message.warning(this.$t('workCenter.marketListReleaseProcess.noData')) + data = false } else { data = false }