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