Commit aba9cd15 by 张杰

修复问题

1 parent 6ce922e1
......@@ -294,10 +294,10 @@ export default {
},
handleCheckChange(data, checked, indeterminate) {
//console.log(data, checked, indeterminate);
console.log(checked)
if (checked) {
//console.log(this.$refs.tree.getNode(data))
let node = this.$refs.tree.getNode(data);
console.log(indeterminate);
//this.getAllChild(node)
//this.$refs.tree.store.defaultExpandAll = true
//this.$refs.tree.setCheckedKeys(['u8121'])
......@@ -825,16 +825,17 @@ export default {
//this.monitorList.itemArr.splice(this.monitorList.itemArr.indexOf(item.sn||item), 1)
this.monitorList = Object.assign({}, obj);
this.monitorList.count--;
console.log(item)
EventBus.$emit(
"uiMap.monitor.destroy",
`${item.sn || item}:${item.source || item}`
);
console.log(this.monitorList);
//console.log(this.monitorList);
if (ifUpdateTreeKeys) {
console.log(item);
let checkedKeys = this.$refs.tree.getCheckedKeys();
let arr = checkedKeys.filter((id) => id !== item.id);
console.log(arr);
//console.log(arr);
this.$refs.tree.setCheckedKeys(arr);
}
},
......@@ -842,10 +843,10 @@ export default {
// 批量删除 监控列表
removeMonitorByGroup(arr) {
let _this = this;
console.log(this.monitorList);
console.log(arr);
let o = this.monitorList;
arr.forEach((item) => {
let n = o[item];
let n = o[item.sn||item];
if (n) {
_this.removeMonitor(n);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!