From 9800496e9baa1f1fc5d2bb09648b1f2a6cfda04b Mon Sep 17 00:00:00 2001 From: zyh Date: Wed, 25 Oct 2023 16:50:05 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-3263=20fix=EF=BC=9AChart=20tooltip=20?= =?UTF-8?q?=E6=9C=AA=E6=8C=89=E7=85=A7=E9=85=8D=E7=BD=AE=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/chart/chart/chartTimeSeries.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue b/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue index 3c582e027..c42c01664 100644 --- a/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue +++ b/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue @@ -684,7 +684,7 @@ export default { }, chartClick (params) { // 先取消多表联动 防止其它图表setOption - if (this.isConnect !== 'none') { + if (this.isConnect && this.isConnect !== 'none') { echarts.disconnect('timeSeriesGroup') } getChart(this.chartId).dispatchAction({ @@ -740,7 +740,7 @@ export default { this.toolbox.clickIndex = params.seriesIndex const e = params.event.event this.toolboxPosition(e) - if (this.isConnect !== 'none') { + if (this.isConnect && this.isConnect !== 'none') { echarts.connect('timeSeriesGroup') } }, @@ -748,7 +748,7 @@ export default { this.toolbox.show = false }, showSelectedSeries () { - if (this.isConnect !== 'none') { + if (this.isConnect && this.isConnect !== 'none') { echarts.disconnect('timeSeriesGroup') } @@ -768,13 +768,13 @@ export default { this.isGrey = this.isGrey.map((g, i) => i !== this.toolbox.clickIndex) this.$refs.legend.isGrey = this.isGrey - if (this.isConnect !== 'none') { - echarts.disconnect('timeSeriesGroup') + if (this.isConnect && this.isConnect !== 'none') { + echarts.connect('timeSeriesGroup') } this.clickout() }, showAllSeries () { - if (this.isConnect !== 'none') { + if (this.isConnect && this.isConnect !== 'none') { echarts.disconnect('timeSeriesGroup') } getChart(this.chartId).dispatchAction({ @@ -782,8 +782,8 @@ export default { }) this.isGrey = this.isGrey.map(() => false) this.$refs.legend.isGrey = this.isGrey - if (this.isConnect !== 'none') { - echarts.disconnect('timeSeriesGroup') + if (this.isConnect && this.isConnect !== 'none') { + echarts.connect('timeSeriesGroup') } this.clickout() }