Guoxiaohuan 5 лет назад
Родитель
Сommit
af23426f57
2 измененных файлов с 41 добавлено и 16 удалено
  1. 16 16
      src/views/evaluate/evIndoorTemperature.vue
  2. 25 0
      src/views/evaluate/evTwoLevelMenu.vue

+ 16 - 16
src/views/evaluate/evIndoorTemperature.vue

@@ -340,22 +340,22 @@ export default {
       myCharts.setOption(option);
       myCharts.on("click", param => {
         this.$router.push("/evaluate/evTwoLevelMenu");
-        // if (param.seriesName == "室内温度满足率") {
-        //   this.$router.push({
-        //     path: "/evaluate/evTwoLevelMenu",
-        //     query: { num: 1 }
-        //   });
-        // } else if (param.seriesName == "节能率") {
-        //   this.$router.push({
-        //     path: "/evaluate/evTwoLevelMenu",
-        //     query: { num: 2 }
-        //   });
-        // } else if (param.seriesName == "策略执行") {
-        //   this.$router.push({
-        //     path: "/evaluate/evTwoLevelMenu",
-        //     query: { num: 3 }
-        //   });
-        // }
+        if (param.seriesName == "室内温度满足率") {
+          this.$router.push({
+            path: "/evaluate/evTwoLevelMenu",
+            query: { type: 1 }
+          });
+        } else if (param.seriesName == "节能率") {
+          this.$router.push({
+            path: "/evaluate/evTwoLevelMenu",
+            query: { type: 2 }
+          });
+        } else {
+          this.$router.push({
+            path: "/evaluate/evTwoLevelMenu",
+            query: { type: 3 }
+          });
+        }
       });
     }
   }

+ 25 - 0
src/views/evaluate/evTwoLevelMenu.vue

@@ -71,6 +71,7 @@ import EvRateTitle from "./evRateTitle";
 import EvHistory from "./evHistory";
 import DateTemp from "./dateTemp";
 import { runDataQury, energyDayQuery } from "@/api/evaluate/evaluate.js";
+import { queryChillerExecuteInfo } from "@/api/appeal/appeal.js";
 
 export default {
   data() {
@@ -153,8 +154,32 @@ export default {
   mounted() {
     this.start();
     this.queryRunDataQury();
+    this.type = this.$route.query.type;
+    if (this.type == 1) {
+      this.num = 1;
+    } else if (this.type == 2) {
+      this.num = 2;
+      this.queryEnergyDayQuery();
+    } else if (this.type == 3) {
+      this.num = 3;
+      this.queryimplement();
+    }
   },
   methods: {
+    queryimplement() {
+      let params = {
+        postParams: {
+          criteria: {
+            date: "20200226"
+            // "id":15582 //指令id
+          }
+        }
+      };
+      queryChillerExecuteInfo(params).then(res => {
+        this.cardList = res.data ? res.data : [];
+        console.log(this.cardList);
+      });
+    },
     change: function(index) {
       this.num = index;
       this.start();