From ffb1eaa6c5b7840752d78f06cd970b2534c4f263 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Wed, 13 Sep 2023 18:08:47 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E5=A2=9E=E5=8A=A0=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E6=A0=87=E5=87=86=E6=96=B0=E5=A2=9E=E7=9A=84=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/lang/enterpriseStandardLibrary/zh.js | 2 +- .../standard/EnterpriseStandardList.vue | 3 ++- .../standard/modules/EnterpriseStandardModal.vue | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/lang/enterpriseStandardLibrary/zh.js b/src/common/lang/enterpriseStandardLibrary/zh.js index dfee90ee..ca8a1867 100644 --- a/src/common/lang/enterpriseStandardLibrary/zh.js +++ b/src/common/lang/enterpriseStandardLibrary/zh.js @@ -9,7 +9,7 @@ module.exports = { collection: '收藏', cancelCollection: '取消收藏', templateExport: '企业标准模板', - pleaseSelectLeastOneNode: '请先选择二级及以下体系', + pleaseSelectLeastOneNode: '请先选择企业标准下体系', authorizationDepart: '授权部门', authorizationUser: '授权人员', maturityDate: '授权到期日期', diff --git a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue index 098792b6..dabc994a 100644 --- a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue +++ b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue @@ -326,8 +326,9 @@ export default { }, // 配置标准 handleAllocationStandard () { + console.log(this.currentTreeNode) // 没选择左侧树节点,需要提示“请先选择二级及以下体系” - if (!this.currentTreeNode || this.currentTreeNode.length === 0) { + if (!this.currentTreeNode || this.currentTreeNode.length === 0 || this.currentTreeNode.includes('myCollect')) { this.$message.warn(this.$t('enterpriseStandardLibrary.standard.pleaseSelectLeastOneNode')) return } diff --git a/src/views/enterpriseStandardLibrary/standard/modules/EnterpriseStandardModal.vue b/src/views/enterpriseStandardLibrary/standard/modules/EnterpriseStandardModal.vue index be2e416c..7ddd9f4a 100644 --- a/src/views/enterpriseStandardLibrary/standard/modules/EnterpriseStandardModal.vue +++ b/src/views/enterpriseStandardLibrary/standard/modules/EnterpriseStandardModal.vue @@ -12,6 +12,8 @@