Commit f81c504b by 张杰

修复监控树勾选问题

1 parent d4b99f10
...@@ -741,13 +741,15 @@ export default { ...@@ -741,13 +741,15 @@ export default {
// 展开树节点 // 展开树节点
expandTreeItems(arr, isDevice) { expandTreeItems(arr, isDevice) {
let _this = this;
arr.forEach((item) => { arr.forEach((item) => {
if (isDevice) { if (isDevice) {
console.log(item.id) console.log(item.id)
this.$refs.tree.setCheckedKeys( let keys = _this.$refs.tree.getCheckedKeys()
this.$refs.tree.getCheckedKeys().concat(item.id) console.log('keys',keys)
); //_this.$refs.tree.setCheckedKeys(keys);
//this.checkedKeys.push(item.id); _this.checkedKeys.push(item.id);
console.log(_this.checkedKeys)
this.addMonitor({ this.addMonitor({
sn: item.label, sn: item.label,
name: item.label1, name: item.label1,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!