feat():浸润线曲线调整
parent
5903f7cac6
commit
d4d1a7b092
|
|
@ -99,7 +99,7 @@ export default function Xmzlmb() {
|
||||||
...obj,
|
...obj,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (result.length > 0) {
|
if (result.length > 0 || res.data.length == 0) {
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
}
|
}
|
||||||
// let res1 = result.map(item => ({...item,rz:(item.rz - 100).toFixed(2)})) //为了测试 最后需要删除
|
// let res1 = result.map(item => ({...item,rz:(item.rz - 100).toFixed(2)})) //为了测试 最后需要删除
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,6 @@ export default function jrxOptions(data = {}, type = "1",typeName='1') {
|
||||||
const filteredArray = line.filter(subArray => {
|
const filteredArray = line.filter(subArray => {
|
||||||
return subArray.every(item => item !== null && item !== undefined);
|
return subArray.every(item => item !== null && item !== undefined);
|
||||||
});
|
});
|
||||||
console.log("line",line);
|
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
@ -377,11 +376,15 @@ export default function jrxOptions(data = {}, type = "1",typeName='1') {
|
||||||
symbol: 'none',
|
symbol: 'none',
|
||||||
symbolSize: 10,
|
symbolSize: 10,
|
||||||
z: 1,
|
z: 1,
|
||||||
|
smooth: 0.6, // 设置平滑度
|
||||||
|
smoothMonotone: 'x', // 保持 x 方向的单调性
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: '#5487FF'
|
color: '#5487FF'
|
||||||
},
|
},
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: '#5487FF',
|
color: '#5487FF',
|
||||||
|
width: 2,
|
||||||
|
curveness: 0.5 // 增加曲线程度
|
||||||
},
|
},
|
||||||
data: filteredArray
|
data: filteredArray
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue