From 98dfe205f06d8858040a30b37a1b07b159a541eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= Date: Wed, 25 Mar 2020 18:43:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20alert-rule=E4=BA=8C=E7=BA=A7=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=9F=A5=E8=AF=A2=E5=8F=82=E6=95=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/bottomBox/alertMessageBox.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/bottomBox/alertMessageBox.vue b/nezha-fronted/src/components/common/bottomBox/alertMessageBox.vue index 8943eaeb3..38d49ed8c 100644 --- a/nezha-fronted/src/components/common/bottomBox/alertMessageBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/alertMessageBox.vue @@ -310,7 +310,7 @@ search: function (searchObj) { this.searchLabel = {}; if (this.from == "alertRule") { - this.searchLabel.alertName = this.obj.alertName; + this.searchLabel.ruleId = this.obj.id; } else if (this.from == "asset") { this.searchLabel.type = 3; this.searchLabel.linkId = this.obj.id; @@ -390,7 +390,7 @@ this.searchMsg.searchLabelList = this.searchMsg.searchLabelList.filter((item, index) => { return item.label != "alertName" && item.label != "severity" }); - this.searchLabel.alertName = n.alertName; + this.searchLabel.ruleId = n.id; } else if (this.from == "asset") { this.searchMsg.searchLabelList = this.searchMsg.searchLabelList.filter((item, index) => { return item.label != "alertType" && item.label != "asset"