feat():浸润线连线处理

qzc-dev
李神峰 2025-09-30 16:46:13 +08:00
parent 256a7035bf
commit fece6e9979
2 changed files with 10 additions and 4 deletions

View File

@ -115,6 +115,12 @@ export default function jrxOptions(data = {}, type = "1",typeName='1') {
[85, data[alltype[3]]]
]
: []
const filteredArray = line.filter(subArray => {
return subArray.every(item => item !== null && item !== undefined);
});
console.log("line",line);
return {
toolbox: {
show: true,
@ -377,7 +383,7 @@ export default function jrxOptions(data = {}, type = "1",typeName='1') {
lineStyle: {
color: '#5487FF',
},
data: line
data: filteredArray
},
]
};

View File

@ -11,7 +11,7 @@ export default function dtOption(doubleData) {
const textColor = '#666'
return {
title: {
text: `${doubleData?.stationCode}测压管水位过程线`,
text: `${doubleData?.cd}测压管水位过程线`,
bottom: "5%",
left: "40%",
textStyle: {
@ -26,7 +26,7 @@ const textColor = '#666'
show: true,
excludeComponents: ['toolbox'],
pixelRatio: 2,
name:`${doubleData?.stationCode}测压管水位过程线`
name:`${doubleData?.cd}测压管水位过程线`
}
},
right: "20%",
@ -144,7 +144,7 @@ const textColor = '#666'
series: [
{
name: doubleData?.stationCode,
name: doubleData?.cd,
type: 'line',
yAxisIndex: 0,
symbol: 'circle',