diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/assets/charts.js index 2fd64d5b..0e26ca6a 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/assets/charts.js +++ b/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)}%}` },