责任部门,选中父节点不能连带着子节点选中
This commit is contained in:
@@ -5386,18 +5386,18 @@ export default {
|
||||
},
|
||||
drawerCheckZRBM(data) {
|
||||
|
||||
console.log("data", data);
|
||||
console.log("5389", data);
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
data.forEach(item => {
|
||||
if (item.hasChild === '0') {
|
||||
// if (item.hasChild === '0') {
|
||||
if (nameList.length > 0) {
|
||||
nameList += ','
|
||||
idList += ','
|
||||
}
|
||||
idList += item.id
|
||||
nameList += item.name
|
||||
}
|
||||
// }
|
||||
})
|
||||
|
||||
this.sarStandardsInfoEO.ZRBMId = idList;
|
||||
|
||||
Reference in New Issue
Block a user