趋势对比线条颜色修改

This commit is contained in:
stt
2025-11-27 14:58:06 +08:00
parent f32673c92a
commit 09bf34700a

View File

@@ -68,7 +68,6 @@
width: prop.width,
height: `calc(${prop.height} - ${headerHeight}px + ${fullscreen ? 0 : 56}px)`
}"
v-if="showEchart"
/>
</div>
</template>
@@ -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
}
}
}
})