feat():浸润线连线处理
parent
256a7035bf
commit
fece6e9979
|
|
@ -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
|
||||
},
|
||||
]
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue