@@ -800,8 +800,8 @@ export default {
//水位 温度 热泵名称
this.progress1 = this.tableData[0].waterLevel1;
this.progress2 = this.tableData[0].waterLevel2;
- this.temdata1 = this.tableData[0].waterTemp;
- this.temdata2 = this.tableData[1].waterTemp;
+ this.temdata1 = this.tableData[0].tankWaterTemp;
+ this.temdata2 = this.tableData[1].tankWaterTemp2;
// this.pumname = row.pumpName;
// // 热泵状态 是否故障
// this.hotPumState = row.runState;
@@ -817,14 +817,30 @@ export default {
}
});
},
- getPercentage(value) {
- // 将 progress1 的值转换为百分比
- return ((value / 3.2) * 100).toFixed(2);
- },
- // 判断循环泵是否运行
+ // 判断主楼-循环泵管道是否运行
isCirculateRunning() {
+ return this.tableData.some(item => Number(item.loopPumpState1) === 1 || Number(item.loopPumpState2) === 1);
+ },
+ // 判断热泵是否运行
+ isHotPumpRunning() {
return this.tableData.some(item => Number(item.runState) !== 0);
},
+ // 获取主楼-循环泵1的图片
+ getCyclePump1Img() {
+ if (this.tableData.length === 0) return require('../../../assets/flowimg/closepum.png');
+ const state = Number(this.tableData[0].loopPumpState1);
+ if (state === 1) return require('../../../assets/flowimg/startpum.png');
+ if (state === 2) return require('../../../assets/flowimg/badpum.png');
+ return require('../../../assets/flowimg/closepum.png');
+ },
+ // 获取主楼-循环泵2的图片
+ getCyclePump2Img() {
+ if (this.tableData.length === 0) return require('../../../assets/flowimg/closepum.png');
+ const state = Number(this.tableData[0].loopPumpState2);
+ if (state === 1) return require('../../../assets/flowimg/startpum.png');
+ if (state === 2) return require('../../../assets/flowimg/badpum.png');
+ return require('../../../assets/flowimg/closepum.png');
+ },
},
};