提交 2d67a94e 编写于 作者: zhentian.jia's avatar zhentian.jia

子节点被选中

上级 819409a8
...@@ -1461,7 +1461,6 @@ export default { ...@@ -1461,7 +1461,6 @@ export default {
//console.log(checked,administrative) //console.log(checked,administrative)
let checkList = []; let checkList = [];
checkList = this.$refs.tree.getCheckedKeys(); checkList = this.$refs.tree.getCheckedKeys();
//this.$refs.tree.setCheckedKeys(checkList);
if(checked) { if(checked) {
for(let i=0;i<administrative.length;i++) { for(let i=0;i<administrative.length;i++) {
checkList.push(administrative[i].id); checkList.push(administrative[i].id);
...@@ -1498,7 +1497,6 @@ export default { ...@@ -1498,7 +1497,6 @@ export default {
//console.log(administrative); //console.log(administrative);
data.children = administrative; data.children = administrative;
//data.children.push(newChild); //data.children.push(newChild);
//this.onChecked()
this.appendCheck(administrative,node.checked); this.appendCheck(administrative,node.checked);
} }
}); });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册