Browse Source

修改NaN

wangqin
zhoule 9 months ago
parent
commit
752e2454ec
  1. 1
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/assets/charts.js

1
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/assets/charts.js

@ -48,6 +48,7 @@ var options = {
echartsData.forEach((it) => {
count += it.value;
})
if (count == 0) count = 1;
let obj = echartsData.filter(it => { return it.name == params })
return `{ast|${obj[0].name}} {bst|${Math.round(obj[0].value / count * 100)}%}`
},

Loading…
Cancel
Save