feat: There is no way the, 企标计划及立项 体系结构 添加逻辑 只可选择二级及以下

This commit is contained in:
super_liu
2022-03-02 10:04:08 +08:00
parent 92ff909a34
commit f66ed6a146
2 changed files with 14 additions and 0 deletions
@@ -687,6 +687,13 @@ export default {
},
TXJGenterDrawer () {
let list = this.$refs.TXJGTree.getCheckedNodes()
if(list.length > 0){
let parenList = list.filter ( item => item.parentId === null || item.parentId === '');
if (parenList.length > 0) {
this.$message.error('请选择二级及以下目录')
return
}
}
let id = ''
let name = ''
list.map(item => {
@@ -919,6 +919,13 @@
return;
}
let list = this.$refs.TXJGTree.getCheckedNodes()
if(list.length > 0){
let parenList = list.filter ( item => item.parentId === null || item.parentId === '');
if (parenList.length > 0) {
this.$message.error('请选择二级及以下目录')
return
}
}
let id = ''
let name = ''
list.map(item => {