This commit is contained in:
lb 2024-01-03 15:21:43 +08:00
parent 678c1b86ed
commit bee1aedda4
3 changed files with 8 additions and 8 deletions

View File

@ -17,14 +17,14 @@ function EnergyCost(props) {
> >
<span style={{ fontSize: "20px", letterSpacing: '2px', lineHeight: 1.5 }}>余热发电</span> <span style={{ fontSize: "20px", letterSpacing: '2px', lineHeight: 1.5 }}>余热发电</span>
<span style={{ fontSize: "20px", color: "#3ce8ff", lineHeight: 1.5 }}> <span style={{ fontSize: "20px", color: "#3ce8ff", lineHeight: 1.5 }}>
{energyInfo?.elecQty1 || 0}kWh {(+energyInfo?.elecQty1)?.toFixed(2) || 0}kWh
</span> </span>
</div> </div>
<div className={cls.info__item_groups}> <div className={cls.info__item_groups}>
<div className={cls.info__item}> <div className={cls.info__item}>
<i style={{ fontSize: "18px", fontStyle: "normal", paddingRight: '6px' }}>水耗量</i> <i style={{ fontSize: "18px", fontStyle: "normal", paddingRight: '6px' }}>水耗量</i>
<span style={{ fontSize: "17px", color: "#3ce8ff" }}> <span style={{ fontSize: "17px", color: "#3ce8ff" }}>
{energyInfo?.waterQty || 0}Km³ {(+energyInfo?.waterQty)?.toFixed(2) || 0}Km³
</span> </span>
</div> </div>
<div className={cls.info__item}> <div className={cls.info__item}>
@ -36,7 +36,7 @@ function EnergyCost(props) {
<div className={cls.info__item}> <div className={cls.info__item}>
<i style={{ fontSize: "18px", fontStyle: "normal", paddingRight: '6px' }}>电耗量</i> <i style={{ fontSize: "18px", fontStyle: "normal", paddingRight: '6px' }}>电耗量</i>
<span style={{ fontSize: "17px", color: "#3ce8ff" }}> <span style={{ fontSize: "17px", color: "#3ce8ff" }}>
{energyInfo?.elecQty2 || 0}kWh {(+energyInfo?.elecQty2)?.toFixed(2) || 0}kWh
</span> </span>
</div> </div>
<div className={cls.info__item}> <div className={cls.info__item}>

View File

@ -167,7 +167,7 @@ function getOptions(showChart, hisState, runState) {
? Object.keys(runState).map((fan) => ({ ? Object.keys(runState).map((fan) => ({
id: Math.random(), id: Math.random(),
name: fan, name: fan,
value: runState[fan], value: (+runState[fan])?.toFixed(2),
})) }))
: [ : [
{ id: 1, name: "1#风机", value: "0m³/h" }, { id: 1, name: "1#风机", value: "0m³/h" },

View File

@ -12,16 +12,16 @@ function SmokeHandle(props) {
<div className={`${cls.smokeHandle__content} flex flex-col`}> <div className={`${cls.smokeHandle__content} flex flex-col`}>
<div className={cls.info__item_groups}> <div className={cls.info__item_groups}>
<div className={cls.info__item}> <div className={cls.info__item}>
: {smokeInfo?.O2_float?.toFixed(2) || 0}% : {(+smokeInfo?.O2_float)?.toFixed(2) || 0}%
</div> </div>
<div className={cls.info__item}> <div className={cls.info__item}>
氮氧化物浓度: {smokeInfo?.NOX_float?.toFixed(2) || 0}mg/ 氮氧化物浓度: {(+smokeInfo?.NOX_float)?.toFixed(2) || 0}mg/
</div> </div>
<div className={cls.info__item}> <div className={cls.info__item}>
二氧化硫浓度: {smokeInfo?.SO2_float?.toFixed(2) || 0}mg/ 二氧化硫浓度: {(+smokeInfo?.SO2_float)?.toFixed(2) || 0}mg/
</div> </div>
<div className={cls.info__item}> <div className={cls.info__item}>
颗粒物浓度: {smokeInfo?.dust_float?.toFixed(2) || 0}mg/ 颗粒物浓度: {(+smokeInfo?.dust_float)?.toFixed(2) || 0}mg/
</div> </div>
</div> </div>
<TechSplitline /> <TechSplitline />