Browse Source

修复单场站数据指标单位问题

baiyanting 1 year ago
parent
commit
e54da2df42

+ 8 - 8
src/views/stateMonitor/factoryMonitor/photovoltaic/lightDataTarget/index.vue

@@ -173,24 +173,24 @@ export default {
       if (localLightTargets[1].name == "装机容量") {
         localStorage.removeItem("lightlocalData");
         this.uniformDetial = Array.from(
-          new Set([
+        new Set([
             {
-              name: "场站名称",
-              uniformCode: "CZMC",
+              name: "设备名称",
+              uniformCode: "SBAMC",
               valueUnit: "",
               width: "120",
             },
             {
-              name: "装机容量",
-              uniformCode: "ZJRL",
+              name: "设备容量",
+              uniformCode: "SBXH",
               valueUnit: "MW",
               width: "80",
             },
             ...localLightTargets.filter(
               (i) =>
-                i.valueUnit != "kW" &&
-                i.name != "装机容量" &&
-                i.name != "场站名称"
+                i.valueUnit != "" &&
+                i.name != "设备容量" &&
+                i.name != "设备名称"
             ),
           ])
         );

+ 9 - 9
src/views/stateMonitor/factoryMonitor/windPowerPlant/DataTarget/index.vue

@@ -166,27 +166,27 @@ export default {
     let localWindTargets = window.localStorage.getItem("windlocalData");
     if (localWindTargets != null && JSON.stringify(localWindTargets) != "{}") {
       localWindTargets = JSON.parse(localWindTargets);
- if (localWindTargets[1].name == "装机容量") {
+      if (localWindTargets[1].name == "设备容量") {
         localStorage.removeItem("windlocalData");
         this.uniformDetial = Array.from(
           new Set([
             {
-              name: "场站名称",
-              uniformCode: "CZMC",
+              name: "设备名称",
+              uniformCode: "SBAMC",
               valueUnit: "",
               width: "120",
             },
             {
-              name: "装机容量",
-              uniformCode: "ZJRL",
+              name: "设备容量",
+              uniformCode: "SBXH",
               valueUnit: "MW",
               width: "80",
             },
             ...localWindTargets.filter(
               (i) =>
-                i.valueUnit != "kW" &&
-                i.name != "装机容量" &&
-                i.name != "场站名称"
+                i.valueUnit != "" &&
+                i.name != "设备容量" &&
+                i.name != "设备名称"
             ),
           ])
         );
@@ -566,7 +566,7 @@ ul li {
       font-size: 16px;
       font-family: Microsoft YaHei;
       font-weight: 400;
-      color: #05BB4C;
+      color: #05bb4c;
       margin-left: 25px;
     }
   }