From fc24385b1c9f0b5e78b115bf37b435223ccd3fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= Date: Wed, 16 Dec 2020 15:39:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D$CONSTANTS=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/bottomBox/bottomBox.vue | 2 +- .../common/bottomBox/tabs/alertMessageTab.vue | 12 ++++++------ .../components/common/bottomBox/tabs/panelTab.vue | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue index be94da088..5b0d74c3a 100644 --- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue @@ -85,7 +85,7 @@ this.$emit('update:targetTab', tab); }, afterResize() { - if (this.from == $CONSTANTS.fromRoute.endpoint && this.targetTab == 'endpointQuery') { + if (this.from == this.$CONSTANTS.fromRoute.endpoint && this.targetTab == 'endpointQuery') { this.$refs.endpointQuery.tableReload(); } } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue index 4701c2d7e..cb7774eb3 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue @@ -649,11 +649,11 @@ if(this.searchLabel.orderBy){ orderBy=this.searchLabel.orderBy } - if (this.from == $CONSTANTS.fromRoute.rule) { + if (this.from == this.$CONSTANTS.fromRoute.rule) { this.searchLabel.ruleId = this.obj.id; - } else if (this.from == $CONSTANTS.fromRoute.asset) { + } else if (this.from == this.$CONSTANTS.fromRoute.asset) { this.searchLabel.assetId = this.obj.id; - }else if(this.from == $CONSTANTS.fromRoute.endpoint){ + }else if(this.from == this.$CONSTANTS.fromRoute.endpoint){ this.searchLabel.endpointId=this.obj.id; } this.pageObj.pageNo = 1; @@ -693,17 +693,17 @@ }else{ this.defaultPick=12; } - if (this.from == $CONSTANTS.fromRoute.rule) { + if (this.from == this.$CONSTANTS.fromRoute.rule) { this.searchMsg.searchLabelList = this.searchMsg.searchLabelList.filter((item, index) => { return item.label != "alertName" && item.label != "severity" }); this.searchLabel.ruleId = n.id; - } else if (this.from == $CONSTANTS.fromRoute.asset) { + } else if (this.from == this.$CONSTANTS.fromRoute.asset) { this.searchMsg.searchLabelList = this.searchMsg.searchLabelList.filter((item, index) => { return item.label != "alertType" && item.label != "asset" }); this.searchLabel.assetId = n.id; - } else if(this.from == $CONSTANTS.fromRoute.endpoint){ + } else if(this.from == this.$CONSTANTS.fromRoute.endpoint){ this.searchMsg.searchLabelList = this.searchMsg.searchLabelList.filter((item, index) => { return item.label != "alertType" && item.label != "endpoint" }); diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue index 44148080d..bac6f28d4 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue @@ -1,7 +1,7 @@