瀏覽代碼

修改运行评价0返回-9999

guoxiaohuan 5 年之前
父節點
當前提交
f484757e50
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      src/views/evaluate/evIndoorTemperature.vue

+ 10 - 2
src/views/evaluate/evIndoorTemperature.vue

@@ -42,8 +42,12 @@ export default {
                 this.energyDataList.forEach(el => {
                     el.time = el.date.slice(4, 6) + '.' + el.date.slice(6, 8)
                     this.dataX.push(el.time)
-                    this.indoorY.push(el.tindoorFillRate == '-9999' ? undefined : el.tindoorFillRate.toFixed(2))
-                    this.energyY.push(el.energySavingRate == '-9999' ? undefined : el.energySavingRate.toFixed(2))
+                    this.indoorY.push(
+                        el.tindoorFillRate == '-9999' ? undefined : el.tindoorFillRate != undefined ? el.tindoorFillRate.toFixed(2) : undefined
+                    )
+                    this.energyY.push(
+                        el.energySavingRate == '-9999' ? undefined : el.energySavingRate != undefined ? el.energySavingRate.toFixed(2) : undefined
+                    )
                     if (el.chillerExecuteRateReal >= 75) {
                         //绿色
                         this.strategy1.push(2)
@@ -60,6 +64,10 @@ export default {
                         this.strategy3.push(2)
                     }
                 })
+                console.log(this.dataX)
+                console.log(this.energyY)
+                console.log(this.indoorY)
+
                 this.drawIt()
             }
         },