From 08f7df4e52bb3f3c5d783fdbc50a8cd2bd5a036b Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Wed, 18 May 2022 18:21:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DchartAlarmInfo?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=8F=AA=E6=9C=89=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E6=97=B6=E5=9B=9E=E5=88=B0=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts/ChartHeader.vue | 1 + src/views/charts/charts/ChartAlarmInfo.vue | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/views/charts/ChartHeader.vue b/src/views/charts/ChartHeader.vue index e4acdf4c..6371406b 100644 --- a/src/views/charts/ChartHeader.vue +++ b/src/views/charts/ChartHeader.vue @@ -313,6 +313,7 @@ export default { this.$emit('refresh') if (this.isAlarmInfo) { this.tabHandleClick('All') + this.emitter.emit('chart-info', 'All') } }, timeRefreshChange () { diff --git a/src/views/charts/charts/ChartAlarmInfo.vue b/src/views/charts/charts/ChartAlarmInfo.vue index 87580f51..94a0d438 100644 --- a/src/views/charts/charts/ChartAlarmInfo.vue +++ b/src/views/charts/charts/ChartAlarmInfo.vue @@ -192,6 +192,10 @@ export default { } }, mounted () { + const _this = this + this.emitter.on('chart-info', function (value) { + _this.getData(1, value) + }) this.getCount() } }