feat():浸润线曲线调整

qzc-dev
李神峰 2025-10-09 13:54:47 +08:00
parent 5903f7cac6
commit d4d1a7b092
2 changed files with 5 additions and 2 deletions

View File

@ -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)})) //为了测试 最后需要删除

View File

@ -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
}, },