From 4d45e7bc24a780ea47974325822fb989782392ef Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 28 Sep 2023 11:36:16 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9=E4=BC=81=E6=A0=87?= =?UTF-8?q?=E6=88=91=E7=9A=84=E6=94=B6=E8=97=8F=E4=B8=8D=E5=8F=AF=E7=A7=BB?= =?UTF-8?q?=E5=87=BA=E6=A0=87=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/lang/enterpriseStandardLibrary/en.js | 1 + src/common/lang/enterpriseStandardLibrary/zh.js | 1 + .../standard/EnterpriseStandardList.vue | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/src/common/lang/enterpriseStandardLibrary/en.js b/src/common/lang/enterpriseStandardLibrary/en.js index 4e7c6ab1..027ddeff 100644 --- a/src/common/lang/enterpriseStandardLibrary/en.js +++ b/src/common/lang/enterpriseStandardLibrary/en.js @@ -12,6 +12,7 @@ module.exports = { exportZipFile: 'Enterprise Standard Document', templateExport: 'Enterprise Standard Template', pleaseSelectLeastOneNode: 'Please select Level 2 and below system first', + myCollectNotRemove: 'My collection system cannot be removed from the standard', authorizationDepart: '授权部门', authorizationUser: '授权人员', maturityDate: '授权到期日期', diff --git a/src/common/lang/enterpriseStandardLibrary/zh.js b/src/common/lang/enterpriseStandardLibrary/zh.js index 14ab50f8..25db2b7b 100644 --- a/src/common/lang/enterpriseStandardLibrary/zh.js +++ b/src/common/lang/enterpriseStandardLibrary/zh.js @@ -12,6 +12,7 @@ module.exports = { exportZipFile: '企业标准文件', templateExport: '企业标准模板', pleaseSelectLeastOneNode: '请先选择企业标准下体系', + myCollectNotRemove: '我的收藏体系不可移出标准', authorizationDepart: '授权部门', authorizationUser: '授权人员', maturityDate: '授权到期日期', diff --git a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue index 3fc86a75..415c26f3 100644 --- a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue +++ b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue @@ -422,6 +422,11 @@ export default { this.$message.warn(this.$t('enterpriseStandardLibrary.standard.pleaseSelectLeastOneNode')) return } + // 左侧节点选的是我的收藏,不可移出标准 + if (this.currentTreeNode[0] === 'myCollect') { + this.$message.warn(this.$t('enterpriseStandardLibrary.standard.myCollectNotRemove')) + return + } // 没有选择列表数据,需要提示“选中至少一条列表数据” if (!this.selectedRowKeys || this.selectedRowKeys.length === 0) { this.$message.warning(this.$t('selectLeastOne'))