From bee1aedda47efef895c1408332fc6703f3781498 Mon Sep 17 00:00:00 2001 From: lb Date: Wed, 3 Jan 2024 15:21:43 +0800 Subject: [PATCH] update --- src/components/Common/Energy/index.jsx | 6 +++--- src/components/Common/FanRunFrequence/index.jsx | 2 +- src/components/Common/SmokeHandle/index.jsx | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Common/Energy/index.jsx b/src/components/Common/Energy/index.jsx index d9a63d8..3fee3b7 100644 --- a/src/components/Common/Energy/index.jsx +++ b/src/components/Common/Energy/index.jsx @@ -17,14 +17,14 @@ function EnergyCost(props) { > 余热发电 - {energyInfo?.elecQty1 || 0}kWh + {(+energyInfo?.elecQty1)?.toFixed(2) || 0}kWh
水耗量 - {energyInfo?.waterQty || 0}Km³ + {(+energyInfo?.waterQty)?.toFixed(2) || 0}Km³
@@ -36,7 +36,7 @@ function EnergyCost(props) {
电耗量 - {energyInfo?.elecQty2 || 0}kWh + {(+energyInfo?.elecQty2)?.toFixed(2) || 0}kWh
diff --git a/src/components/Common/FanRunFrequence/index.jsx b/src/components/Common/FanRunFrequence/index.jsx index 1b1f7ad..7dc8b02 100644 --- a/src/components/Common/FanRunFrequence/index.jsx +++ b/src/components/Common/FanRunFrequence/index.jsx @@ -167,7 +167,7 @@ function getOptions(showChart, hisState, runState) { ? Object.keys(runState).map((fan) => ({ id: Math.random(), name: fan, - value: runState[fan], + value: (+runState[fan])?.toFixed(2), })) : [ { id: 1, name: "1#风机", value: "0m³/h" }, diff --git a/src/components/Common/SmokeHandle/index.jsx b/src/components/Common/SmokeHandle/index.jsx index 232f573..1f7e1a6 100644 --- a/src/components/Common/SmokeHandle/index.jsx +++ b/src/components/Common/SmokeHandle/index.jsx @@ -12,16 +12,16 @@ function SmokeHandle(props) {
- 氧 气 含 量 : {smokeInfo?.O2_float?.toFixed(2) || 0}% + 氧 气 含 量 : {(+smokeInfo?.O2_float)?.toFixed(2) || 0}%
- 氮氧化物浓度: {smokeInfo?.NOX_float?.toFixed(2) || 0}mg/m³ + 氮氧化物浓度: {(+smokeInfo?.NOX_float)?.toFixed(2) || 0}mg/m³
- 二氧化硫浓度: {smokeInfo?.SO2_float?.toFixed(2) || 0}mg/m³ + 二氧化硫浓度: {(+smokeInfo?.SO2_float)?.toFixed(2) || 0}mg/m³
- 颗粒物浓度: {smokeInfo?.dust_float?.toFixed(2) || 0}mg/m³ + 颗粒物浓度: {(+smokeInfo?.dust_float)?.toFixed(2) || 0}mg/m³