|
@@ -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()
|
|
|
}
|
|
|
},
|