Browse Source

修改冷冻回水温度取值的逻辑

dev
selia-zx 1 week ago
parent
commit
0ed1212ebb
  1. 25
      src/views/components/monitor/centerairMonitor.vue

25
src/views/components/monitor/centerairMonitor.vue

@ -433,6 +433,7 @@ export default {
coolingTowerInlet: [], //
coolingTowerOutlet: [], //
freezingManifold: [], //
allCapacity:[], //
calorimeter: [], //
isShowOn: false, //,falseOff,trueOn
oneKeyButtonId: "",
@ -711,6 +712,7 @@ export default {
this.coolingTowerInlet = [];
this.coolingTowerOutlet = [];
this.freezingManifold = [];
this.allCapacity = [];
res.rows.forEach((row) => {
switch (row.name) {
@ -746,10 +748,21 @@ export default {
this.coolingTowerOutlet = this.processDeviceList(row.values);
console.log("冷却塔出水阀列表", this.coolingTowerOutlet);
break;
case "6":
this.allCapacity = row.values;
console.log("总冷量计列表", this.allCapacity);
/** 总冷量计数据就绪后,如果冷冻总管数据已有则重新计算,确保allCapacity可用 */
if (this.freezingManifold.length > 0) {
this.freezingManifoldData();
}
break;
case "15":
this.freezingManifold = row.values;
console.log("冷冻总管", this.freezingManifold);
this.freezingManifoldData();
/** 如果allCapacity已有数据则立即计算,否则等case "6"触发 */
if (this.allCapacity.length > 0) {
this.freezingManifoldData();
}
break;
case "25":
this.calorimeter = row.values;
@ -1414,12 +1427,20 @@ export default {
if (this.freezingManifold.length <= index) {
return false;
}
/** 先查找总冷量计回水温度的值,用于冷冻回水温度的条件判断 */
const totalCoolingReturnItem = this.allCapacity.find(i => i.collectName === "总冷量计回水温度");
const totalCoolingReturnValue = totalCoolingReturnItem ? totalCoolingReturnItem.collectValue : null;
console.log("totalCoolingReturnValue", totalCoolingReturnValue)
this.freezingManifold.forEach((item) => {
if (item.collectName === "冷冻供水温度") {
this.freezingOutTem = item.collectValue;
console.log("item.collectName", item.collectName);
} else if (item.collectName === "冷冻回水温度") {
this.freezingInTem = item.collectValue;
// 25collectName=collectName=
this.freezingInTem = Number(item.collectValue) > 25 && totalCoolingReturnValue !== null
? totalCoolingReturnValue
: item.collectValue;
} else if (item.collectName === "冷冻供水压力") {
this.freezingOutPre = item.collectValue;
} else if (item.collectName === "冷冻回水压力") {

Loading…
Cancel
Save