lizhuang 5 роки тому
батько
коміт
3871285b70
1 змінених файлів з 17 додано та 16 видалено
  1. 17 16
      src/views/evaluate/evIndoorTemperature.vue

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

@@ -47,17 +47,17 @@ export default {
                     if (el.chillerExecuteRateReal >= 75) {
                         //绿色
                         this.strategy1.push(2)
-                        this.strategy2.push(null)
-                        this.strategy3.push(null)
+                        this.strategy2.push(undefined)
+                        this.strategy3.push(undefined)
                     } else if (el.chillerExecuteRate >= 75) {
                         // 灰色
-                        this.strategy1.push(null)
-                        this.strategy2.push(null)
+                        this.strategy1.push(undefined)
+                        this.strategy2.push(undefined)
                         this.strategy3.push(2)
                     } else {
-                        this.strategy1.push(null)
+                        this.strategy1.push(undefined)
                         this.strategy2.push(2)
-                        this.strategy3.push(null)
+                        this.strategy3.push(undefined)
                     }
                 })
                 console.log(this.strategy3)
@@ -100,17 +100,14 @@ export default {
                         axisTick: {
                             alignWithLabel: true
                         },
-                        splitLine: {
-                            show: false
-                        },
                         axisLine: {
                             lineStyle: {
                                 color: '#8D9399'
                             }
                         },
-                        axisLabel: {
-                            interval: 0 //代表显示所有x轴标签显示
-                        },
+                        // axisLabel: {
+                        //     interval: 0 //代表显示所有x轴标签显示
+                        // },
                         data: this.dataX
                     }
                 ],
@@ -171,19 +168,23 @@ export default {
                     {
                         name: '按照策略执行',
                         type: 'bar',
-                        barWidth: 40,
-                        data: this.strategy1
+                        barWidth: '80%',
+                        stack:'堆叠',
+                        data: this.strategy1,
+                        
                     },
                     {
                         name: '未按照策略执行',
                         type: 'bar',
-                        barWidth: 40,
+                        barWidth: '80%',
+                        stack:'堆叠',
                         data: this.strategy2
                     },
                     {
                         name: '未按照策略执行,申诉通过',
                         type: 'bar',
-                        barWidth: 40,
+                        barWidth: '80%',
+                        stack:'堆叠',
                         data: this.strategy3
                     },
                     {