From 81bff6be9607b9ef035bc53eaa83104d37639a15 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Fri, 31 May 2024 15:44:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E8=A7=86=E5=9B=BE):=20=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E6=BB=9A=E5=8A=A8=E6=8F=90=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/ChartComponentS2.vue | 6 ++---- .../src/views/chart/components/senior/ScrollCfg.vue | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/frontend/src/views/chart/components/ChartComponentS2.vue b/core/frontend/src/views/chart/components/ChartComponentS2.vue index ad13661221..99459d4c49 100644 --- a/core/frontend/src/views/chart/components/ChartComponentS2.vue +++ b/core/frontend/src/views/chart/components/ChartComponentS2.vue @@ -541,10 +541,8 @@ export default { const customAttr = JSON.parse(this.chart.customAttr) const senior = JSON.parse(this.chart.senior) if (senior?.scrollCfg?.open) { - if (this.chart.type !== 'table-normal') { - if (this.chart.type === 'table-info' && !this.showPage) { - return - } + if (this.chart.type === 'table-info' && this.showPage) { + return } // 防止多次渲染 this.myChart.facet.timer?.stop() diff --git a/core/frontend/src/views/chart/components/senior/ScrollCfg.vue b/core/frontend/src/views/chart/components/senior/ScrollCfg.vue index 90788f5609..4a941a18b7 100644 --- a/core/frontend/src/views/chart/components/senior/ScrollCfg.vue +++ b/core/frontend/src/views/chart/components/senior/ScrollCfg.vue @@ -16,6 +16,7 @@ @change="changeScrollCfg" >{{ $t('chart.open') }}