From d4d1a7b092485b59640b2ef83937aa48289d3d8d Mon Sep 17 00:00:00 2001 From: lishenfeng Date: Thu, 9 Oct 2025 13:54:47 +0800 Subject: [PATCH] =?UTF-8?q?feat():=E6=B5=B8=E6=B6=A6=E7=BA=BF=E6=9B=B2?= =?UTF-8?q?=E7=BA=BF=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/gcaqjc/gcaqfx/jrx/index.js | 2 +- src/views/gcaqjc/gcaqfx/jrx/jrxOptions.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/gcaqjc/gcaqfx/jrx/index.js b/src/views/gcaqjc/gcaqfx/jrx/index.js index 9bd74ac63..d1c306570 100644 --- a/src/views/gcaqjc/gcaqfx/jrx/index.js +++ b/src/views/gcaqjc/gcaqfx/jrx/index.js @@ -99,7 +99,7 @@ export default function Xmzlmb() { ...obj, } }) - if (result.length > 0) { + if (result.length > 0 || res.data.length == 0) { setLoading(false) } // let res1 = result.map(item => ({...item,rz:(item.rz - 100).toFixed(2)})) //为了测试 最后需要删除 diff --git a/src/views/gcaqjc/gcaqfx/jrx/jrxOptions.js b/src/views/gcaqjc/gcaqfx/jrx/jrxOptions.js index 2c2f4b815..ac7e4baf4 100644 --- a/src/views/gcaqjc/gcaqfx/jrx/jrxOptions.js +++ b/src/views/gcaqjc/gcaqfx/jrx/jrxOptions.js @@ -118,7 +118,6 @@ export default function jrxOptions(data = {}, type = "1",typeName='1') { const filteredArray = line.filter(subArray => { return subArray.every(item => item !== null && item !== undefined); }); - console.log("line",line); return { @@ -377,11 +376,15 @@ export default function jrxOptions(data = {}, type = "1",typeName='1') { symbol: 'none', symbolSize: 10, z: 1, + smooth: 0.6, // 设置平滑度 + smoothMonotone: 'x', // 保持 x 方向的单调性 itemStyle: { color: '#5487FF' }, lineStyle: { color: '#5487FF', + width: 2, + curveness: 0.5 // 增加曲线程度 }, data: filteredArray },