From 09bf34700a655fca681806751d3f8651d9a0dae1 Mon Sep 17 00:00:00 2001 From: stt Date: Thu, 27 Nov 2025 14:58:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=8B=E5=8A=BF=E5=AF=B9=E6=AF=94=E7=BA=BF?= =?UTF-8?q?=E6=9D=A1=E9=A2=9C=E8=89=B2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cockpit/trendComparison/index.vue | 25 ++++--------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/src/components/cockpit/trendComparison/index.vue b/src/components/cockpit/trendComparison/index.vue index ef84769..54602dc 100644 --- a/src/components/cockpit/trendComparison/index.vue +++ b/src/components/cockpit/trendComparison/index.vue @@ -68,7 +68,6 @@ width: prop.width, height: `calc(${prop.height} - ${headerHeight}px + ${fullscreen ? 0 : 56}px)` }" - v-if="showEchart" /> @@ -116,8 +115,6 @@ const indicatorList = ref() const echartList = ref() -const showEchart = ref(true) - const headerHeight = ref(57) // 监测对象 @@ -200,6 +197,8 @@ const setEchart = () => { const phaseName = phase === 'default' ? '' : `${phase}相` const color = phaseColors[phase] || config.layout.elementUiPrimary[0] + console.log(color,'89089900') + series.push({ name: `治理前${phaseName}`, type: 'line', @@ -209,13 +208,7 @@ const setEchart = () => { data: beforeGroupedByPhase[phase], itemStyle: { normal: { - color: function (params: any) { - if (params.value[1] == 0 || params.value[1] == 3.14159) { - return '#ccc' - } else { - return color - } - } + color: color } }, lineStyle: { @@ -240,13 +233,7 @@ const setEchart = () => { data: afterGroupedByPhase[phase], itemStyle: { normal: { - color: function (params: any) { - if (params.value[1] == 0 || params.value[1] == 3.14159) { - return '#ccc' - } else { - return color - } - } + color:color } }, lineStyle: { @@ -371,9 +358,7 @@ const tableStore: any = new TableStore({ chartsListBefore.value = tableStore.table.data.before chartsListAfter.value = tableStore.table.data.after setEchart() - } else if (tableStore.table.data) { - showEchart.value = false - } + } } })