|
|
@ -209,6 +209,10 @@ |
|
|
|
this.checkedId = [] |
|
|
|
this.groupSid = row.sid |
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.Tree.setCheckedKeys([]); //先清空之前选中的节点,再给赋值 |
|
|
|
}); |
|
|
|
|
|
|
|
for (var i = 0; i < row.list.length; i++) { |
|
|
|
var item = row.list[i] |
|
|
|
if (item.children == "1") { |
|
|
@ -216,6 +220,12 @@ |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.Tree.setCheckedKeys(this.checkedId); //先清空之前选中的节点,再给赋值 |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
console.log('checkedId', this.checkedId) |
|
|
|
|
|
|
|
// this.checkedId = this.recursiveFilter(row.list) |
|
|
|
}, |
|
|
@ -374,6 +384,7 @@ |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
this.$refs.Tree2.setCheckedKeys([]) |
|
|
|
this.activeName = 'roleList' |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|