Commit f5b8b044 authored by wangqinghua's avatar wangqinghua

update

parent 440e1ebe
......@@ -162,7 +162,7 @@ export class AlarmModalComponent implements OnInit {
e.title = e.name;
e.key = e.hostid;
e.isLeaf = true;
if(this.selectTreeList.includes(e.key)){
if (this.selectTreeList.includes(e.key)) {
e.checked = true;
}
});
......@@ -181,9 +181,9 @@ export class AlarmModalComponent implements OnInit {
//选择树节点
selectCheckTree(event: NzFormatEmitEvent) {
if (event.node.isChecked) {
this.selectTreeList.push(event.node.origin.hostid);
this.selectTreeList.push(event.node.key);
} else {
const index = this.selectTreeList.indexOf(event.node.origin.hostid);
const index = this.selectTreeList.indexOf(event.node.key);
this.selectTreeList.splice(index, 1);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment