[update] 增加企业标准新增的条件

This commit is contained in:
lideqin
2023-09-13 18:08:47 +08:00
parent f21bd469bd
commit ffb1eaa6c5
3 changed files with 5 additions and 2 deletions
@@ -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
}