Browse Source

运营指标修改

tianyabing 2 years ago
parent
commit
e1bdba76c0
1 changed files with 11 additions and 7 deletions
  1. 11 7
      src/components/business/analysis/analysis.vue

+ 11 - 7
src/components/business/analysis/analysis.vue

@@ -100,34 +100,38 @@ export default {
                 // 用电
                 this.coreData[0].title = "总用电量(kWh)";
                 this.coreData[1].title = "人均用电量(kWh/人)";
+                this.coreData[2].title = "总用电成本(元)";
+                this.coreData[3].title = "人均用电成本(元/人)";
             } else if ("water" == type) {
                 // 用水
                 this.coreData[0].title = "总用水量(m³)";
                 this.coreData[1].title = "人均用水量(m³/人)";
+                this.coreData[2].title = "总用水成本(元)";
+                this.coreData[3].title = "人均用水成本(元/人)";
             } else if ("hot" == type) {
                 // 用热
                 this.coreData[0].title = "总用热量(焦)";
                 this.coreData[1].title = "人均用热量(焦)";
+                this.coreData[2].title = "总用热成本(元)";
+                this.coreData[3].title = "人均用热成本(元/人)";
             } else if ("cold" == type) {
                 // 用冷
                 this.coreData[0].title = "总用冷量(kWh)";
                 this.coreData[1].title = "人均用冷量(kWh/人)";
+                this.coreData[2].title = "总用冷成本(元)";
+                this.coreData[3].title = "人均用冷成本(元/人)";
             } else if ("pv" == type) {
                 // 光伏
                 this.coreData[0].title = "总发电量(kWh)";
                 this.coreData[1].title = "平均发电量(kWh/台)";
+                this.coreData[2].title = "总盈利(元)";
+                this.coreData[3].title = "平均盈利(元/台)";
             } else {
                 // 全部
                 this.coreData[0].title = "总用量(kWh)";
                 this.coreData[1].title = "总用量m³)";
-            }
-
-            if ("pv" == type) {
-                this.coreData[2].title = "总盈利(元)";
-                this.coreData[2].title = "平均盈利(元/台)";
-            } else {
                 this.coreData[2].title = "总能耗成本(元)";
-                this.coreData[2].title = "平均能耗成本(元/人)";
+                this.coreData[3].title = "人均能耗成本(元/人)";
             }
             this.getCoreData();
         },