责任部门,选中父节点不能连带着子节点选中

This commit is contained in:
yanyizhou
2021-11-28 11:11:59 +08:00
parent 01266fe745
commit dc0461e45b
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -23,6 +23,7 @@
class="filter-tree tree-line" class="filter-tree tree-line"
:data="treeData" :data="treeData"
:props="defaultProps" :props="defaultProps"
:check-strictly="true"
:current-node-key="nodeKeyId" :current-node-key="nodeKeyId"
node-key="id" node-key="id"
:filter-node-method="filterNode" :filter-node-method="filterNode"
@@ -5386,18 +5386,18 @@ export default {
}, },
drawerCheckZRBM(data) { drawerCheckZRBM(data) {
console.log("data", data); console.log("5389", data);
let idList = '' let idList = ''
let nameList = '' let nameList = ''
data.forEach(item => { data.forEach(item => {
if (item.hasChild === '0') { // if (item.hasChild === '0') {
if (nameList.length > 0) { if (nameList.length > 0) {
nameList += ',' nameList += ','
idList += ',' idList += ','
} }
idList += item.id idList += item.id
nameList += item.name nameList += item.name
} // }
}) })
this.sarStandardsInfoEO.ZRBMId = idList; this.sarStandardsInfoEO.ZRBMId = idList;