Przeglądaj źródła

电厂大屏 - NG消耗单位修改为Nm³,取值bug fix

wangggziwen 2 lat temu
rodzic
commit
b346880836

+ 1 - 1
ui/src/views/monitor/elec/bottomRight.vue

@@ -18,7 +18,7 @@
           <bottomRightChart :weekData="weekData" v-bind="$attrs"/>
         </div>
       <div class="naturalGasData" style="flex: 0.9;">
-        <span style="fontSize:14px;position:relative;top:-15px;">NG消耗</span>
+        <span style="fontSize:14px;position:relative;top:-15px;">NG消耗(Nm³)</span>
         <div style="padding-top:10px;">
           <div style="display:flex;flex-direction:row; margin-bottom: 10px;height:30px;">
             <p class="ml-3 colorBlue fw-b bottom-right-text" style="padding-right:17px;margin:0px;">电厂</p>

+ 6 - 2
ui/src/views/monitor/elec/elecindex.vue

@@ -498,8 +498,12 @@ export default {
         this.dashboardelecdata.elecPowerGen = data.elecPowerGen;
         this.dashboardelecdata.elecPowerSwitch = data.elecPowerSwitch;
         this.dashboardelecdata.elecUsed = data.elecUsed;
-        this.dashboardelecdata.gasLeft = data.gasLeft;
-        this.dashboardelecdata.gasElec = data.gasElec;
+        let gasLeft = data.gasLeft;
+        if (gasLeft.indexOf("(") != -1) {
+          gasLeft = gasLeft.substr(gasLeft.indexOf("(") + 1, gasLeft.length - 2);
+        }
+        this.dashboardelecdata.gasLeft = gasLeft;
+        this.dashboardelecdata.gasElec = data.gasElec == "#VALUE!" ? "0" : data.gasElec;
         this.dashboardelecdata.gasSynGas = data.gasSynGas;
         this.dashboardelecdata.gasU2 = data.gasU2;
         this.dashboardelecdata.gasStyrene = data.gasStyrene;