Переглянути джерело

Fix: Format history data and threshold values to two decimal places for better readability

valentichu 1 місяць тому
батько
коміт
eddb9eae35
2 змінених файлів з 2 додано та 2 видалено
  1. 0 0
      lib/index.js
  2. 2 2
      src/pages/Alarm/components/topoDetail.jsx

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
lib/index.js


+ 2 - 2
src/pages/Alarm/components/topoDetail.jsx

@@ -340,11 +340,11 @@ const TopoDetail = (props) => {
 
     const seriesData = historyData.map((point) => {
       // 转换为百分比显示
-      return point.value;
+      return point.value.toFixed(2);
     });
 
     // 阈值也转换为百分比
-    const thresholdValue = threshold;
+    const thresholdValue = threshold.toFixed(2);
 
     // 配置数据点样式
     newData.series[0] = {

Деякі файли не було показано, через те що забагато файлів було змінено