From e12477a69ac9f78e4497bd6b93dda436bafb4900 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 13 Jul 2021 17:10:50 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-821=20fix=EF=BC=9A=E4=BF=AE=E6=94=B9diagram?= =?UTF-8?q?=20=E5=9B=BE=E8=A1=A8=20=E5=88=B7=E6=96=B0=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/charts/chart-list.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index 1667e0f53..6f9cf7d9c 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -833,9 +833,14 @@ export default { if (chartItem.type == 'diagram') { if (this.$refs['editChart' + chartItem.id] && this.$refs['editChart' + chartItem.id].length > 0) { - if (filterType === 'showFullScreen') { // 全屏查询 - this.$refs['editChart' + chartItem.id][0].setData(chartItem, null, - this.filter.panelId, null, filterType) + + if (filterType === 'refresh') { + this.$get('visual/panel/chart/' + chartItem.id).then(res => { + const data = res.data.data + data.param = JSON.parse(data.param) + this.$refs['editChart' + chartItem.id][0].setData(data, null, + this.filter.panelId, null, '') + }) } else { this.$refs['editChart' + chartItem.id][0].setData(chartItem, null, this.filter.panelId, null, '')