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 - } + } } })