Browse Source

运行评价图

guoxiaohuan 5 years ago
parent
commit
03e002cca0
1 changed files with 9 additions and 11 deletions
  1. 9 11
      src/views/evaluate/evIndoorTemperature.vue

+ 9 - 11
src/views/evaluate/evIndoorTemperature.vue

@@ -52,15 +52,14 @@ export default {
                     } else if (el.chillerExecuteRate >= 75) {
                         // 灰色
                         this.strategy1.push(undefined)
-                        this.strategy2.push(undefined)
-                        this.strategy3.push(2)
-                    } else {
-                        this.strategy1.push(undefined)
                         this.strategy2.push(2)
                         this.strategy3.push(undefined)
+                    } else {
+                        this.strategy1.push(undefined)
+                        this.strategy2.push(undefined)
+                        this.strategy3.push(2)
                     }
                 })
-                console.log(this.strategy3)
                 this.drawIt()
             }
         },
@@ -79,7 +78,7 @@ export default {
                         return (
                             params[0].name +
                             '<br/>' +
-                            (params[0].value==2?params[0].seriesName:params[1].seriesName) +
+                            (params[0].value == 2 ? params[0].seriesName : params[1].seriesName) +
                             '<br/>' +
                             '<i class="icon1"></i> 室内温度:' +
                             (params[2].value || 0) +
@@ -169,22 +168,21 @@ export default {
                         name: '按照策略执行',
                         type: 'bar',
                         barWidth: '80%',
-                        stack:'堆叠',
-                        data: this.strategy1,
-                        
+                        stack: '堆叠',
+                        data: this.strategy1
                     },
                     {
                         name: '未按照策略执行',
                         type: 'bar',
                         barWidth: '80%',
-                        stack:'堆叠',
+                        stack: '堆叠',
                         data: this.strategy2
                     },
                     {
                         name: '未按照策略执行,申诉通过',
                         type: 'bar',
                         barWidth: '80%',
-                        stack:'堆叠',
+                        stack: '堆叠',
                         data: this.strategy3
                     },
                     {