趋势对比线条颜色修改
This commit is contained in:
@@ -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,8 +358,6 @@ 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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user