菜单配置

This commit is contained in:
shenyanpei
2021-08-30 16:48:21 +08:00
parent a3bb271e87
commit 9e729793e3
+1 -3
View File
@@ -471,7 +471,6 @@ export default {
if (selected !== -1) {
// 子节点只要被选中父节点就被选中
this.selectedParent(currentObj)
this.selectedParent2(currentObj)
// 统一处理子节点为相同的勾选状态
this.uniteChildSame(currentObj, true)
} else {
@@ -483,8 +482,7 @@ export default {
},
// 统一处理子节点为相同的勾选状态
uniteChildSame(treeList, isSelected) {
// this.$refs.tree3.setChecked(treeList.id, isSelected)
this.$refs.tree2.setChecked(treeList.id, isSelected)
this.$refs.tree3.setChecked(treeList.id, isSelected)
for (let i = 0; i < treeList.children.length; i++) {
this.uniteChildSame(treeList.children[i], isSelected)
}