feat: dc-机柜二级页面

This commit is contained in:
陈劲松
2020-03-25 18:38:13 +08:00
parent 329287c1ac
commit 7990c1ee8d
6 changed files with 560 additions and 275 deletions

View File

@@ -312,7 +312,8 @@
if (this.from == "alertRule") {
this.searchLabel.alertName = this.obj.alertName;
} else if (this.from == "asset") {
this.searchLabel.type = 3;
this.searchLabel.linkId = this.obj.id;
}
this.pageObj.pageNo = 1;
for (let item in searchObj) {
@@ -389,13 +390,13 @@
this.searchMsg.searchLabelList = this.searchMsg.searchLabelList.filter((item, index) => {
return item.label != "alertName" && item.label != "severity"
});
this.searchLabel.alertName = this.obj.alertName;
this.searchLabel.alertName = n.alertName;
} else if (this.from == "asset") {
this.searchMsg.searchLabelList = this.searchMsg.searchLabelList.filter((item, index) => {
return item.label != "alertType" && item.label != "asset"
});
this.searchLabel.type = 3;
this.searchLabel.linkId = this.obj.id;
this.searchLabel.linkId = n.id;
}
this.getAlertList();
}