菜单配置
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user