From af0561cabeea2f51f6acc620568625c478c63b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= Date: Fri, 25 Dec 2020 16:53:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4char?= =?UTF-8?q?t=E5=90=8E=E4=B8=8B=E6=96=B9=E9=A1=B6=E4=B8=8A=E6=9D=A5?= =?UTF-8?q?=E7=9A=84=E5=9B=BE=E4=B8=8D=E5=8A=A0=E8=BD=BD=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/charts/chart-list.vue | 7 +------ .../src/components/common/bottomBox/tabs/panelTab.vue | 1 + nezha-fronted/src/components/page/dashboard/panel.vue | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index 91cfb7d1c..b7bfc11eb 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -192,10 +192,6 @@ textChart // visNetwork, }, - watch:{ - dataList(n){ - } - }, data() { return { filter: {}, @@ -695,7 +691,6 @@ }, // 获取一个图表具体数据,图表信息,图表位置index getChartData(chartInfo, pos, filterType) { - console.info(filterType) const chartItem = chartInfo; const index = pos; // 指标 if(chartItem.type === 'assetInfo'){ @@ -1612,7 +1607,7 @@ that.$refs['editChart'+item.id][0].showLoad(item); } } - }, 100); + }, 500); }, }, created() { diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue index 37df6ed1b..1304e198a 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue @@ -257,6 +257,7 @@ } } } + this.$refs.chartList.loadChartData(this.scrollbarWrap.scrollTop); if(nextChart&&prevChart){ //删除图表为中间位置 prevChart.next = nextChart.id; nextChart.prev = prevChart.id; diff --git a/nezha-fronted/src/components/page/dashboard/panel.vue b/nezha-fronted/src/components/page/dashboard/panel.vue index ed3df073b..854948247 100644 --- a/nezha-fronted/src/components/page/dashboard/panel.vue +++ b/nezha-fronted/src/components/page/dashboard/panel.vue @@ -332,6 +332,7 @@ } } } + this.$refs.chartList.loadChartData(this.scrollbarWrap.scrollTop); if(nextChart&&prevChart){ //删除图表为中间位置 prevChart.next = nextChart.id; nextChart.prev = prevChart.id;