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

View File

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