|
|
|
|
@ -132,26 +132,26 @@
|
|
|
|
|
<div class="hostName1" v-if="hostList.length > 0" @click="goControlList(hostList, 1)"> |
|
|
|
|
{{ hostList[0].deviceName }} |
|
|
|
|
</div> |
|
|
|
|
<div class="hostStatus1" :class="{ startClass: hostListControlClass(1) }"></div> |
|
|
|
|
<img class="host-img1" v-if="hostListRunClass(1)" src="../../../assets/images/fan-img.png" alt="" |
|
|
|
|
:class="{ moveClass: hostListRunClass(1) }" /> |
|
|
|
|
<div class="hostStatus1" :class="{ startClass: hostListControlClass(5) }"></div> |
|
|
|
|
<img class="host-img1" v-if="hostListRunClass(5)" src="../../../assets/images/fan-img.png" alt="" |
|
|
|
|
:class="{ moveClass: hostListRunClass(5) }" /> |
|
|
|
|
<div class="host-main1" v-if="hostList.length > 0 && hostList[0].deviceName" |
|
|
|
|
:title="`${hostList[0].deviceName}性能`" @click="goHostDetail(hostList[0], true)"></div> |
|
|
|
|
<div class="hostLoad1" v-if="hostListRunClass(1) && hostLoadData(1)"> |
|
|
|
|
{{ hostLoad1 }}% |
|
|
|
|
<div class="hostLoad1" v-if="hostListRunClass(5) && hostLoadData(5)"> |
|
|
|
|
{{ hostLoad5 }}% |
|
|
|
|
</div> |
|
|
|
|
<div class="water-flow1"> |
|
|
|
|
<div class="water-flow-li"> |
|
|
|
|
<span>1#冷却水流:</span> |
|
|
|
|
<span v-if="hostCoolingWaterFlowClass(1)">接通</span> |
|
|
|
|
<span v-if="hostCoolingWaterFlowClass(5)">接通</span> |
|
|
|
|
<span v-else>断开</span> |
|
|
|
|
<span class="break" :class="{ connect: hostCoolingWaterFlowClass(1) }"></span> |
|
|
|
|
<span class="break" :class="{ connect: hostCoolingWaterFlowClass(5) }"></span> |
|
|
|
|
</div> |
|
|
|
|
<div class="water-flow-li"> |
|
|
|
|
<span>1#冷冻水流:</span> |
|
|
|
|
<span v-if="hostFreezeWaterFlowClass(1)">接通</span> |
|
|
|
|
<span v-if="hostFreezeWaterFlowClass(5)">接通</span> |
|
|
|
|
<span v-else>断开</span> |
|
|
|
|
<span class="break" :class="{ connect: hostFreezeWaterFlowClass(1) }"></span> |
|
|
|
|
<span class="break" :class="{ connect: hostFreezeWaterFlowClass(5) }"></span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<line-children :angle1="-0" :angle2="-30" :lineWidth1="190" :lineWidth2="250" class="host-line1"></line-children> |
|
|
|
|
@ -375,7 +375,7 @@ export default {
|
|
|
|
|
oneKeyButtonId: "", |
|
|
|
|
|
|
|
|
|
// 主机负载 |
|
|
|
|
hostLoad1: "", |
|
|
|
|
hostLoad5: "", |
|
|
|
|
hostLoad2: "", |
|
|
|
|
hostLoad3: "", |
|
|
|
|
// 主机设定温度 |
|
|
|
|
@ -480,7 +480,6 @@ export default {
|
|
|
|
|
this.getPerformance(); |
|
|
|
|
this.getOneKeyButton(); |
|
|
|
|
this.getMonitorList(); |
|
|
|
|
this.getSteamHeatingData(); |
|
|
|
|
this.getAlarnStatus(); |
|
|
|
|
this.getDayData(); |
|
|
|
|
|
|
|
|
|
@ -491,7 +490,6 @@ export default {
|
|
|
|
|
// this.getPerformance(); |
|
|
|
|
// this.getOneKeyButton(); |
|
|
|
|
// this.getMonitorList(); |
|
|
|
|
// this.getSteamHeatingData(); |
|
|
|
|
// this.getAlarnStatus(); |
|
|
|
|
// this.getDayData(); |
|
|
|
|
}, 10000); |
|
|
|
|
@ -871,54 +869,6 @@ export default {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 获取蒸汽锅炉运行监测数据 |
|
|
|
|
getSteamHeatingData() { |
|
|
|
|
monitorList({ systemType: 3 }).then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
console.log("设备监测列表返回", res); |
|
|
|
|
// 初始化各个设备列表 |
|
|
|
|
this.steamHeatingHzAndRun = []; //频率和运行状态 |
|
|
|
|
this.steamHeatingFire = []; //热水锅炉火力 |
|
|
|
|
this.steamHeatingTem = []; //热量计供回水温度 |
|
|
|
|
res.rows.forEach((row) => { |
|
|
|
|
switch (row.name) { |
|
|
|
|
case "11": |
|
|
|
|
this.steamHeatingHzAndRun = this.processDeviceList(row.values); |
|
|
|
|
console.log( |
|
|
|
|
"裙蒸汽锅炉频率和运行状态", |
|
|
|
|
this.steamHeatingHzAndRun |
|
|
|
|
); |
|
|
|
|
break; |
|
|
|
|
case "25": |
|
|
|
|
this.steamHeatingFire = this.processDeviceList(row.values); |
|
|
|
|
console.log("裙蒸汽锅炉火力", this.steamHeatingFire); |
|
|
|
|
|
|
|
|
|
break; |
|
|
|
|
case "6": |
|
|
|
|
this.steamHeatingTem = row.values; |
|
|
|
|
console.log("裙蒸汽锅炉热量计供回水温度", this.steamHeatingTem); |
|
|
|
|
this.steamHeatingTem.forEach((element) => { |
|
|
|
|
if ( |
|
|
|
|
element.collectName.includes("回水温度") && |
|
|
|
|
element.paramType == "12" |
|
|
|
|
) { |
|
|
|
|
this.steamHeatingInTem = element.collectValue; |
|
|
|
|
} |
|
|
|
|
if ( |
|
|
|
|
element.collectName.includes("供水温度") && |
|
|
|
|
element.paramType == "12" |
|
|
|
|
) { |
|
|
|
|
this.steamHeatingOutTem = element.collectValue; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 封装一个通用函数来处理设备列表 |
|
|
|
|
processDeviceList(values) { |
|
|
|
|
const deviceList = []; |
|
|
|
|
@ -1749,20 +1699,20 @@ export default {
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
this.freezingManifold.forEach((item) => { |
|
|
|
|
if (item.collectName === "冷冻供水温度") { |
|
|
|
|
if (item.collectName.includes("冷冻供水温度")) { |
|
|
|
|
this.freezingOutTem = item.collectValue; |
|
|
|
|
console.log("item.collectName", item.collectName); |
|
|
|
|
} else if (item.collectName === "冷冻回水温度") { |
|
|
|
|
} else if (item.collectName.includes("冷冻回水温度")) { |
|
|
|
|
this.freezingInTem = item.collectValue; |
|
|
|
|
} else if (item.collectName === "冷冻供水压力") { |
|
|
|
|
} else if (item.collectName.includes("冷冻供水压力")) { |
|
|
|
|
this.freezingOutPre = item.collectValue; |
|
|
|
|
} else if (item.collectName === "冷冻回水压力") { |
|
|
|
|
} else if (item.collectName.includes("冷冻回水压力")) { |
|
|
|
|
this.freezingInPre = item.collectValue; |
|
|
|
|
} else if (item.collectName === "冷却供水温度") { |
|
|
|
|
} else if (item.collectName.includes("冷却水出水温度")) { |
|
|
|
|
this.coolingOutTem = item.collectValue; |
|
|
|
|
} else if (item.collectName === "冷却回水温度") { |
|
|
|
|
} else if (item.collectName.includes("冷却水进水温度")) { |
|
|
|
|
this.coolingInTem = item.collectValue; |
|
|
|
|
} else if (item.collectName === "总冷量计瞬时流量") { |
|
|
|
|
} else if (item.collectName.includes("瞬时流量")) { |
|
|
|
|
this.freezingOutWater = item.collectValue; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
@ -3077,8 +3027,8 @@ export default {
|
|
|
|
|
.hostStatus1 { |
|
|
|
|
z-index: 10; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 5.9rem; |
|
|
|
|
left: 3.8rem; |
|
|
|
|
top: 5.3rem; |
|
|
|
|
left: 7.3rem; |
|
|
|
|
width: 0.18rem; |
|
|
|
|
height: 0.18rem; |
|
|
|
|
border-radius: 50%; |
|
|
|
|
|