From ed347576b6fa2959f474c16b007f2ade946ffb4e Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 27 Jan 2022 14:17:29 +0800 Subject: [PATCH] =?UTF-8?q?CN-282=20fix=EF=BC=9A=E4=BC=98=E5=8C=96panel=20?= =?UTF-8?q?=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts/Panel.vue | 5 ++++- src/views/charts/PanelChartList.vue | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/charts/Panel.vue b/src/views/charts/Panel.vue index 3c202942..4df39844 100644 --- a/src/views/charts/Panel.vue +++ b/src/views/charts/Panel.vue @@ -156,7 +156,10 @@ export default { // methods dateTimeRangeChange (s, e, v) { this.timeFilter = { startTime: s, endTime: e, dateRangeValue: v } - this.chartList = [...this.chartList] + // this.chartList = [...this.chartList] + this.$nextTick(() => { + this.$refs.panelChartList.reload() + }) }, reloadCharts () { this.chartList.forEach(chart => { diff --git a/src/views/charts/PanelChartList.vue b/src/views/charts/PanelChartList.vue index 67e2c004..842f0881 100644 --- a/src/views/charts/PanelChartList.vue +++ b/src/views/charts/PanelChartList.vue @@ -110,6 +110,11 @@ export default { this.stepWidth = Math.floor(dom.offsetWidth / 12) } }, + reload () { + this.copyDataList.forEach(item => { + this.$refs['chart' + item.id].getChartData() + }) + }, showFullscreen (show, chartInfo) { this.fullscreen.chartInfo = chartInfo this.fullscreen.visible = show