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 @@