From d4dd85ee8eb2338c83f6d3d0af0a0764e6f88ba9 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Thu, 11 Nov 2021 13:55:04 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1218=20fix:=20alert=20message=20=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=8C=89=E9=92=AE=20=20=E5=A2=9E=E5=8A=A0=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=9D=A1=E4=BB=B6=20=E5=BD=93=20rule=5Ftype=20?= =?UTF-8?q?=E6=9C=AAlogs=E6=97=B6=E7=A6=81=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/pagination.vue | 2 +- .../src/components/common/table/alert/alertMessageTable.vue | 4 ++-- nezha-fronted/src/components/page/alert/alertMessage.vue | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/common/pagination.vue b/nezha-fronted/src/components/common/pagination.vue index 406ed1055..f854cbe1a 100644 --- a/nezha-fronted/src/components/common/pagination.vue +++ b/nezha-fronted/src/components/common/pagination.vue @@ -15,7 +15,6 @@ - @@ -102,6 +101,7 @@ export default { wraps.forEach(wrap => { if (wrap) { wrap.scrollTop = 0 + wrap.scrollLeft = 0 } }) }) diff --git a/nezha-fronted/src/components/common/table/alert/alertMessageTable.vue b/nezha-fronted/src/components/common/table/alert/alertMessageTable.vue index 06a46ae03..4026cca33 100644 --- a/nezha-fronted/src/components/common/table/alert/alertMessageTable.vue +++ b/nezha-fronted/src/components/common/table/alert/alertMessageTable.vue @@ -113,8 +113,8 @@ fixed="right">
{{$t('overall.option')}}
- - + +
diff --git a/nezha-fronted/src/components/page/alert/alertMessage.vue b/nezha-fronted/src/components/page/alert/alertMessage.vue index 3e546c15d..d24572f7f 100644 --- a/nezha-fronted/src/components/page/alert/alertMessage.vue +++ b/nezha-fronted/src/components/page/alert/alertMessage.vue @@ -453,7 +453,11 @@ export default { } this.$get('/alert/rule/' + row.alertRule.id).then(res => { this.currentMsg = { ...row, alertRule: { ...res.data } } - this.graphShow = true + if (row.alertRule.type !== 1) { + this.graphShow = false + } else { + this.graphShow = true + } this.$nextTick(() => { this.searchTimeDialog = [bus.computeTimezoneTime(new Date().getTime() - 1 * 60 * 60 * 1000), bus.computeTimezoneTime(new Date().getTime())] this.queryDate()