|
|
|
@ -215,6 +215,15 @@
|
|
|
|
|
:lineWidth2="150" |
|
|
|
|
class="host-line1" |
|
|
|
|
></line-children> |
|
|
|
|
<div class="setTem1" v-if="hostSetTemClass(1)"> |
|
|
|
|
设定值:{{ hostSetTem1 }}℃ |
|
|
|
|
</div> |
|
|
|
|
<div class="setTem2" v-if="hostSetTemClass(2)"> |
|
|
|
|
设定值:{{ hostSetTem4 }}℃ |
|
|
|
|
</div> |
|
|
|
|
<div class="setTem3" v-if="hostSetTemClass(3)"> |
|
|
|
|
设定值:{{ hostSetTem3 }}℃ |
|
|
|
|
</div> |
|
|
|
|
<!-- 主机2数据定位 --> |
|
|
|
|
<div |
|
|
|
|
class="hostName2" |
|
|
|
@ -973,6 +982,10 @@ export default {
|
|
|
|
|
hostLoad1: "", |
|
|
|
|
hostLoad2: "", |
|
|
|
|
hostLoad3: "", |
|
|
|
|
// 主机设定温度 |
|
|
|
|
hostSetTem1: "", |
|
|
|
|
hostSetTem2: "", |
|
|
|
|
hostSetTem3: "", |
|
|
|
|
// 冷却泵频率反馈 |
|
|
|
|
coolingPumpHz1: "", |
|
|
|
|
coolingPumpHz2: "", |
|
|
|
@ -1667,6 +1680,53 @@ export default {
|
|
|
|
|
// 否则代表主机冷冻水流信号:断开 |
|
|
|
|
return false; |
|
|
|
|
}, |
|
|
|
|
// 主机设定温度 |
|
|
|
|
hostSetTemClass(index) { |
|
|
|
|
// 从 this.hostList 中查找 deviceName 包含与 index 相同数字的对象 |
|
|
|
|
let targetDevice = null; |
|
|
|
|
for (let i = 0; i < this.hostList.length; i++) { |
|
|
|
|
const device = this.hostList[i]; |
|
|
|
|
const indexStr = index.toString(); |
|
|
|
|
const deviceName = device.deviceName.toString(); |
|
|
|
|
for (let j = 0; j < indexStr.length; j++) { |
|
|
|
|
if (deviceName.includes(indexStr[j])) { |
|
|
|
|
targetDevice = device; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (targetDevice) { |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 如果未找到匹配的设备,返回 false |
|
|
|
|
if (!targetDevice) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
// 获取匹配设备的 properties 数组 |
|
|
|
|
const properties = targetDevice.properties; |
|
|
|
|
|
|
|
|
|
// 检查 properties 数组是否存在 |
|
|
|
|
if (!properties || properties.length === 0) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
// 遍历 properties 数组,如果当前对象paramType === 4则有频率反馈 |
|
|
|
|
for (let i = 0; i < properties.length; i++) { |
|
|
|
|
const item = properties[i]; |
|
|
|
|
if ( |
|
|
|
|
item.paramType === "12" && |
|
|
|
|
item.collectName.includes("用户冷水设定值") |
|
|
|
|
) { |
|
|
|
|
// 动态构造属性名 |
|
|
|
|
const propertyName = `hostSetTem${index}`; |
|
|
|
|
// 使用方括号语法动态设置属性值 |
|
|
|
|
this[propertyName] = item.collectValue; |
|
|
|
|
// this.hostSetTem[index] = item.collectValue; |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 否则代表运行状态中的不运行 |
|
|
|
|
return false; |
|
|
|
|
}, |
|
|
|
|
// 冷却泵运行状态 |
|
|
|
|
coolingPumpRunClass(index) { |
|
|
|
|
// 从 this.coolingPump 中查找 deviceName 包含与 index 相同数字的对象 |
|
|
|
@ -2920,6 +2980,42 @@ export default {
|
|
|
|
|
top: 8.02rem; |
|
|
|
|
z-index: 10; |
|
|
|
|
} |
|
|
|
|
.setTem1 { |
|
|
|
|
z-index: 10; |
|
|
|
|
font-size: 0.16rem; |
|
|
|
|
font-weight: bold; |
|
|
|
|
color: #ffffff; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 6.8rem; |
|
|
|
|
left: 4.1rem; |
|
|
|
|
transform: rotateX(20deg) rotateY(0deg) rotateZ(-22deg); /* 分别在 X、Y、Z 轴上旋转 */ |
|
|
|
|
transform-origin: bottom center; /* 设置旋转的基点为底部中心 */ |
|
|
|
|
text-shadow: 0.02rem 0.02rem 0.04rem rgba(0, 0, 0, 0.9); |
|
|
|
|
} |
|
|
|
|
.setTem2 { |
|
|
|
|
z-index: 10; |
|
|
|
|
font-size: 0.16rem; |
|
|
|
|
font-weight: bold; |
|
|
|
|
color: #ffffff; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 6.12rem; |
|
|
|
|
left: 5.9rem; |
|
|
|
|
transform: rotateX(20deg) rotateY(0deg) rotateZ(-22deg); /* 分别在 X、Y、Z 轴上旋转 */ |
|
|
|
|
transform-origin: bottom center; /* 设置旋转的基点为底部中心 */ |
|
|
|
|
text-shadow: 0.02rem 0.02rem 0.04rem rgba(0, 0, 0, 0.9); |
|
|
|
|
} |
|
|
|
|
.setTem3 { |
|
|
|
|
z-index: 10; |
|
|
|
|
font-size: 0.16rem; |
|
|
|
|
font-weight: bold; |
|
|
|
|
color: #ffffff; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 5.5rem; |
|
|
|
|
left: 7.8rem; |
|
|
|
|
transform: rotateX(20deg) rotateY(0deg) rotateZ(-22deg); /* 分别在 X、Y、Z 轴上旋转 */ |
|
|
|
|
transform-origin: bottom center; /* 设置旋转的基点为底部中心 */ |
|
|
|
|
text-shadow: 0.02rem 0.02rem 0.04rem rgba(0, 0, 0, 0.9); |
|
|
|
|
} |
|
|
|
|
.hostName1 { |
|
|
|
|
cursor: pointer; |
|
|
|
|
border-bottom: 1px solid rgba(0, 255, 255, 1); |
|
|
|
|