Commit aba9cd15 by 张杰

修复问题

1 parent 6ce922e1
...@@ -294,10 +294,10 @@ export default { ...@@ -294,10 +294,10 @@ export default {
}, },
handleCheckChange(data, checked, indeterminate) { handleCheckChange(data, checked, indeterminate) {
//console.log(data, checked, indeterminate); //console.log(data, checked, indeterminate);
console.log(checked)
if (checked) { if (checked) {
//console.log(this.$refs.tree.getNode(data)) //console.log(this.$refs.tree.getNode(data))
let node = this.$refs.tree.getNode(data); let node = this.$refs.tree.getNode(data);
console.log(indeterminate);
//this.getAllChild(node) //this.getAllChild(node)
//this.$refs.tree.store.defaultExpandAll = true //this.$refs.tree.store.defaultExpandAll = true
//this.$refs.tree.setCheckedKeys(['u8121']) //this.$refs.tree.setCheckedKeys(['u8121'])
...@@ -825,16 +825,17 @@ export default { ...@@ -825,16 +825,17 @@ export default {
//this.monitorList.itemArr.splice(this.monitorList.itemArr.indexOf(item.sn||item), 1) //this.monitorList.itemArr.splice(this.monitorList.itemArr.indexOf(item.sn||item), 1)
this.monitorList = Object.assign({}, obj); this.monitorList = Object.assign({}, obj);
this.monitorList.count--; this.monitorList.count--;
console.log(item)
EventBus.$emit( EventBus.$emit(
"uiMap.monitor.destroy", "uiMap.monitor.destroy",
`${item.sn || item}:${item.source || item}` `${item.sn || item}:${item.source || item}`
); );
console.log(this.monitorList); //console.log(this.monitorList);
if (ifUpdateTreeKeys) { if (ifUpdateTreeKeys) {
console.log(item); console.log(item);
let checkedKeys = this.$refs.tree.getCheckedKeys(); let checkedKeys = this.$refs.tree.getCheckedKeys();
let arr = checkedKeys.filter((id) => id !== item.id); let arr = checkedKeys.filter((id) => id !== item.id);
console.log(arr); //console.log(arr);
this.$refs.tree.setCheckedKeys(arr); this.$refs.tree.setCheckedKeys(arr);
} }
}, },
...@@ -842,10 +843,10 @@ export default { ...@@ -842,10 +843,10 @@ export default {
// 批量删除 监控列表 // 批量删除 监控列表
removeMonitorByGroup(arr) { removeMonitorByGroup(arr) {
let _this = this; let _this = this;
console.log(this.monitorList); console.log(arr);
let o = this.monitorList; let o = this.monitorList;
arr.forEach((item) => { arr.forEach((item) => {
let n = o[item]; let n = o[item.sn||item];
if (n) { if (n) {
_this.removeMonitor(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!