|
|
|
@ -114,23 +114,21 @@
|
|
|
|
|
</div> |
|
|
|
|
<div class="hostStatus"> |
|
|
|
|
<div class="hostStatus-li"> |
|
|
|
|
<span>手自动切换:</span> |
|
|
|
|
<span class="automaticData">{{ automaticObj.showValue }}</span> |
|
|
|
|
<span>远程开关机:</span> |
|
|
|
|
<span class="automaticData">{{ onOffObj.curValue }}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="hostStatus-li"> |
|
|
|
|
<span>本地远程状态:</span> |
|
|
|
|
<span class="dotData">{{ localObj.showValue }}</span> |
|
|
|
|
<span>运行累计时间:</span> |
|
|
|
|
<span class="timeData">{{ timeObj.curValue }}小时</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="hostStatus-li"> |
|
|
|
|
<span>故障状态:</span> |
|
|
|
|
<span class="goodData" v-if="badObj.showValue === '正常'">{{ |
|
|
|
|
badObj.showValue |
|
|
|
|
}}</span> |
|
|
|
|
<span class="badData" v-else>{{ badObj.showValue }}</span> |
|
|
|
|
<span>本地出水温度设定值:</span> |
|
|
|
|
<span class="dotData">{{ coldWaterSetObj.curValue }}℃</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="hostStatus-li"> |
|
|
|
|
<span>运行累计时间:</span> |
|
|
|
|
<span class="timeData">{{ timeObj.showValue }}小时</span> |
|
|
|
|
<span>远程出水温度设定值:</span> |
|
|
|
|
<span class="goodData">{{ coldWaterControlObj.curValue }}℃</span> |
|
|
|
|
<!-- <span class="badData" v-else>{{ coldWaterControlObj.curValue }}</span> --> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<!-- 负载 --> |
|
|
|
@ -269,10 +267,10 @@ export default {
|
|
|
|
|
condenserPre: "", //冷凝器压力 |
|
|
|
|
evaporatorPre: "", //蒸发器压力 |
|
|
|
|
rightHostData: [], //右 |
|
|
|
|
automaticObj: {}, //手自动状态 |
|
|
|
|
localObj: {}, //本地远程状态 |
|
|
|
|
badObj: {}, //故障状态 |
|
|
|
|
onOffObj: {}, //远程开关机 |
|
|
|
|
timeObj: {}, //累计运行时间 |
|
|
|
|
coldWaterSetObj: {}, //本地出水温度设定值 |
|
|
|
|
coldWaterControlObj: {}, //远程出水温度设定值 |
|
|
|
|
compressorData1: [], //压缩机1参数 |
|
|
|
|
compressorData2: [], |
|
|
|
|
compressorData3: [], |
|
|
|
@ -412,10 +410,34 @@ export default {
|
|
|
|
|
this.leftHostData = []; |
|
|
|
|
this.rightHostData = []; |
|
|
|
|
// 筛选去掉特定 paramType 的数据 |
|
|
|
|
// this.rightHostData = this.hostData.filter((item) => { |
|
|
|
|
// return !["2", "21", "20", "6", "5", "22", "26"].includes( |
|
|
|
|
// Number(item.paramType) |
|
|
|
|
// ); |
|
|
|
|
// }); |
|
|
|
|
this.rightHostData = this.hostData.filter((item) => { |
|
|
|
|
return !["2", "21", "20", "6", "5", "22", "26"].includes( |
|
|
|
|
const specificParamTypes = [26]; |
|
|
|
|
// 检查是否属于需要排除的特定 paramType |
|
|
|
|
const isSpecificParamType = specificParamTypes.includes( |
|
|
|
|
Number(item.paramType) |
|
|
|
|
); |
|
|
|
|
const isCombinedCondition0 = |
|
|
|
|
Number(item.paramType) === 2 && |
|
|
|
|
item.otherName.includes("手动启停"); |
|
|
|
|
// 检查是否满足 item.paramType 为 12 且 otherName 包含 "冷水控制设定值" |
|
|
|
|
const isCombinedCondition1 = |
|
|
|
|
Number(item.paramType) === 12 && |
|
|
|
|
item.otherName.includes("冷水控制设定值"); |
|
|
|
|
const isCombinedCondition2 = |
|
|
|
|
Number(item.paramType) === 12 && |
|
|
|
|
item.otherName.includes("用户冷水设定值"); |
|
|
|
|
// 返回 false 表示要排除该元素 |
|
|
|
|
return ( |
|
|
|
|
!isSpecificParamType && |
|
|
|
|
!isCombinedCondition0 && |
|
|
|
|
!isCombinedCondition1 && |
|
|
|
|
!isCombinedCondition2 |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
// 根据 ordernum 进行排序 |
|
|
|
|
this.rightHostData.sort((a, b) => { |
|
|
|
@ -423,24 +445,29 @@ export default {
|
|
|
|
|
}); |
|
|
|
|
this.hostData.forEach((item) => { |
|
|
|
|
//左边主机参数 根据不同的 paramType 处理 showValue |
|
|
|
|
if (item.paramType === "6") { |
|
|
|
|
// 运行状态 |
|
|
|
|
item.showValue = |
|
|
|
|
Number(item.curValue) === 0 ? "自动" : "手动"; |
|
|
|
|
this.automaticObj = item; |
|
|
|
|
} else if (item.paramType === "5") { |
|
|
|
|
// 故障状态 |
|
|
|
|
item.showValue = item.curValue; |
|
|
|
|
this.badObj = item; |
|
|
|
|
} else if (item.paramType === "22") { |
|
|
|
|
// 本地远程 |
|
|
|
|
item.showValue = |
|
|
|
|
Number(item.curValue) === 0 ? "本地" : "远程"; |
|
|
|
|
this.localObj = item; |
|
|
|
|
if ( |
|
|
|
|
item.paramType === "2" && |
|
|
|
|
item.otherName.includes("手动启停") |
|
|
|
|
) { |
|
|
|
|
// 远程开关机-手动启停 |
|
|
|
|
// item.showValue = |
|
|
|
|
// Number(item.curValue) === 0 ? "自动" : "手动"; |
|
|
|
|
this.onOffObj = item; |
|
|
|
|
} else if (item.paramType === "26") { |
|
|
|
|
// 累计运行时间 |
|
|
|
|
item.showValue = item.curValue; |
|
|
|
|
this.timeObj = item; |
|
|
|
|
} else if ( |
|
|
|
|
item.paramType === "12" && |
|
|
|
|
item.otherName.includes("冷水控制设定值") |
|
|
|
|
) { |
|
|
|
|
// 本地出水温度设定值 |
|
|
|
|
this.coldWaterSetObj = item; |
|
|
|
|
} else if ( |
|
|
|
|
item.paramType === "12" && |
|
|
|
|
item.otherName.includes("用户冷水设定值") |
|
|
|
|
) { |
|
|
|
|
// 远程出水温度设定值 |
|
|
|
|
this.coldWaterControlObj = item; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|