Browse Source

1.联调梅州-中央空调-系统监测页面内容,调整样式

2.联调梅州-中央空调-系统控制主机去掉本地远程状态,添加频率手自动切换功能
meizhou
selia-zx 3 weeks ago
parent
commit
39661b7ba6
  1. 2
      .env.development
  2. 18
      src/views/centerairC/sysControl/index.vue
  3. 50
      src/views/centerairC/sysControl/listHeader.vue
  4. 68
      src/views/centerairC/sysMonitor/hostDetails.vue
  5. 159
      src/views/centerairC/sysMonitor/monitorCenter.vue

2
.env.development

@ -9,7 +9,7 @@ ENV = 'development'
# 后台 # 后台
# VUE_APP_BASE_API = 'http://192.168.1.222:8080' # VUE_APP_BASE_API = 'http://192.168.1.222:8080'
# 云端 # 云端
VUE_APP_BASE_API = 'http://106.55.173.225:8090' VUE_APP_BASE_API = 'http://106.55.173.225:8091'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

18
src/views/centerairC/sysControl/index.vue

@ -86,6 +86,7 @@
<list-header <list-header
:deviceList="hostList" :deviceList="hostList"
:isNoShowHz="true" :isNoShowHz="true"
:isNoShowlocalRemote="true"
@operationControl="hadleOperationConrol" @operationControl="hadleOperationConrol"
@upList="getOperationList" @upList="getOperationList"
></list-header> ></list-header>
@ -217,6 +218,15 @@ export default {
deviceItem.localRemote = deviceItem.localRemote =
Number(child.value) == 0 ? "本地" : "远程"; Number(child.value) == 0 ? "本地" : "远程";
} }
// -
else if (
child.paramType === "40" &&
!child.name.includes("阀")
) {
deviceItem.frequencyAutotext =
Number(child.value) == 0 ? false : true;
deviceItem.frequencyAutotextId = child.id;
}
// //
else if ( else if (
child.paramType === "3" && child.paramType === "3" &&
@ -258,24 +268,24 @@ export default {
} }
// //
if ( if (
child.name.includes("关到位") && child.name.includes("关到位") &&
Number(child.value) == 0 Number(child.value) == 0
) { ) {
valveClosed = false; valveClosed = false;
} else if ( } else if (
child.name.includes("关到位") && child.name.includes("关到位") &&
Number(child.value) == 1 Number(child.value) == 1
) { ) {
valveClosed = true; valveClosed = true;
} }
// //
if ( if (
child.name.includes("开到位") && child.name.includes("开到位") &&
Number(child.value) == 0 Number(child.value) == 0
) { ) {
valveOpened = false; valveOpened = false;
} else if ( } else if (
child.name.includes("开到位") && child.name.includes("开到位") &&
Number(child.value) == 1 Number(child.value) == 1
) { ) {
valveOpened = true; valveOpened = true;

50
src/views/centerairC/sysControl/listHeader.vue

@ -7,6 +7,7 @@
<div class="device-name">手动控制</div> <div class="device-name">手动控制</div>
<div class="device-name" v-if="!isNoShowlocalRemote">本地远程状态</div> <div class="device-name" v-if="!isNoShowlocalRemote">本地远程状态</div>
<div class="device-name">故障报警</div> <div class="device-name">故障报警</div>
<div class="device-name" v-if="!isNoShowHz">频率手自动切换</div>
<div class="device-name" v-if="!isNoShowHz">频率调节</div> <div class="device-name" v-if="!isNoShowHz">频率调节</div>
<div class="device-name" v-if="!isNoShowHz">频率反馈</div> <div class="device-name" v-if="!isNoShowHz">频率反馈</div>
<div class="device-name">运行时间</div> <div class="device-name">运行时间</div>
@ -55,6 +56,20 @@
{{ item.warnText }} {{ item.warnText }}
</div> </div>
</div> </div>
<!-- 频率-手自动切换 -->
<div class="device-name" v-if="!isNoShowHz">
<el-switch
style="display: block"
v-model="item.frequencyAutotext"
active-color="#13ce66"
inactive-color="#ff4949"
active-text="手动"
inactive-text="自动"
v-if="item.frequencySet !== null && item.frequencySet !== undefined"
@change="handleFrequencyAutomaticText(item)"
>
</el-switch>
</div>
<!-- 频率调节 --> <!-- 频率调节 -->
<div class="device-name" v-if="!isNoShowHz"> <div class="device-name" v-if="!isNoShowHz">
<el-input <el-input
@ -64,7 +79,7 @@
@keyup.enter.native="handleEnter(item, $event)" @keyup.enter.native="handleEnter(item, $event)"
@input="handleInput(item)" @input="handleInput(item)"
@blur="handleBlur()" @blur="handleBlur()"
:disabled="!item.automaticText" :disabled="!item.frequencyAutotext"
></el-input> ></el-input>
<div class="device-name" v-else></div> <div class="device-name" v-else></div>
</div> </div>
@ -108,7 +123,7 @@ export default {
// this.currentFocusIndex = ""; // this.currentFocusIndex = "";
}, },
handleEnter(item, event) { handleEnter(item, event) {
console.log("请求后端"); console.log("请求后端", item);
// //
event.target.blur(); event.target.blur();
this.$confirm( this.$confirm(
@ -121,7 +136,6 @@ export default {
} }
) )
.then(() => { .then(() => {
// operationControl
this.$emit("operationControl", item.frequencyId, item.frequencySet); this.$emit("operationControl", item.frequencyId, item.frequencySet);
}) })
.catch(() => { .catch(() => {
@ -189,6 +203,36 @@ export default {
console.log("不请求后台"); console.log("不请求后台");
}); });
}, },
// -
handleFrequencyAutomaticText(item) {
this.$confirm(
`确定要切换"${item.name}"的频率手自动状态为:${
item.frequencyAutotext ? "手动" : "自动 吗?"
}`,
"提示",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}
)
.then(() => {
//
console.log("请求后台", item.frequencyAutotext);
let param = null;
if (item.frequencyAutotext) {
param = 1;
} else {
param = 0;
}
this.$emit("operationControl", item.frequencyAutotextId, param);
})
.catch(() => {
//
item.frequencyAutotext = !item.frequencyAutotext;
console.log("不请求后台");
});
},
}, },
}; };
</script> </script>

68
src/views/centerairC/sysMonitor/hostDetails.vue

@ -163,12 +163,12 @@
</div> </div>
</div> </div>
</div> </div>
<line-square <!-- <line-square
class="line1" class="line1"
:horizontalLength="720" :horizontalLength="720"
:verticalLength="440" :verticalLength="440"
:overlap="15" :overlap="15"
></line-square> ></line-square> -->
</div> </div>
<div class="detail-data compressor"> <div class="detail-data compressor">
<div class="detail-data-top"> <div class="detail-data-top">
@ -191,12 +191,12 @@
</div> </div>
</div> </div>
</div> </div>
<line-square <!-- <line-square
class="line1" class="line1"
:horizontalLength="720" :horizontalLength="720"
:verticalLength="440" :verticalLength="440"
:overlap="15" :overlap="15"
></line-square> ></line-square> -->
</div> </div>
</div> </div>
</div> </div>
@ -370,11 +370,21 @@ export default {
// //
this.leftHostData = []; this.leftHostData = [];
this.rightHostData = []; this.rightHostData = [];
// paramType
this.rightHostData = this.hostData.filter((item) => {
return !["2", "21", "20", "6", "5", "22", "26"].includes(
Number(item.paramType)
);
});
// // ordernum
// this.rightHostData.sort((a, b) => {
// return Number(a.ordernum) - Number(b.ordernum);
// });
this.hostData.forEach((item) => { this.hostData.forEach((item) => {
// 12 // // 12
if (item.paramType === "12") { // if (item.paramType === "12") {
this.rightHostData.push(item); // this.rightHostData.push(item);
} // }
// paramType showValue // paramType showValue
if (item.paramType === "6") { if (item.paramType === "6") {
// //
@ -404,10 +414,13 @@ export default {
// //
for (let i = 0; i < this.compressorData.length; i++) { for (let i = 0; i < this.compressorData.length; i++) {
const item = this.compressorData[i]; const item = this.compressorData[i];
if (item.paramType === '1' && Number(item.curValue) === 0) { if (item.paramType === "1" && Number(item.curValue) === 0) {
item.curValue = "停止"; item.curValue = "停止";
console.log("压缩机停止了啊是0···················") console.log("压缩机停止了啊是0···················");
}else if (item.paramType === '1' && Number(item.curValue) === 1){ } else if (
item.paramType === "1" &&
Number(item.curValue) === 1
) {
item.curValue = "运行"; item.curValue = "运行";
} }
} }
@ -795,7 +808,7 @@ export default {
} }
} }
.detail-bottom { .detail-bottom {
height: 5rem; // height: 5rem;
margin-top: 0.3rem; margin-top: 0.3rem;
margin-left: 0.25rem; margin-left: 0.25rem;
display: flex; display: flex;
@ -804,9 +817,9 @@ export default {
.hostStatus { .hostStatus {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-end; justify-content: flex-start;
width: 3rem; width: 3rem !important;
margin-bottom: 1.5rem; margin-top: 1.5rem;
.hostStatus-li { .hostStatus-li {
background-color: #25455a; background-color: #25455a;
color: #c0dffc; color: #c0dffc;
@ -816,7 +829,11 @@ export default {
letter-spacing: 0.02rem; letter-spacing: 0.02rem;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: nowrap;
align-items: flex-start; align-items: flex-start;
span {
white-space: nowrap;
}
} }
} }
.detail-data { .detail-data {
@ -840,17 +857,18 @@ export default {
} }
} }
.detail-data-bottom { .detail-data-bottom {
width: 100%; // width: 100%;
padding: 0.1rem 0.3rem; // padding: 0.1rem 0.3rem;
z-index: 0; z-index: 0;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
align-items: flex-start; align-items: stretch;
justify-content: flex-start; justify-content: flex-start;
.detail-data-li { .detail-data-li {
// width: 100%; // width: 100%;
margin-right: 0.1rem; margin-right: 0.1rem;
margin-bottom: 0.15rem !important;
position: relative; position: relative;
color: #c0dffc; color: #c0dffc;
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
@ -997,20 +1015,24 @@ export default {
} }
} }
.hostparams { .hostparams {
width: 7.6rem; width: 7rem;
.detail-data-bottom { .detail-data-bottom {
padding-left: 0.5rem; // padding-left: 0.5rem;
.detail-data-li { .detail-data-li {
width: 3.2rem; // width: 3.2rem;
width: calc(50% - 0.2rem) !important;
margin: 0 0.1rem;
} }
} }
} }
.compressor { .compressor {
width: 7.6rem; width: 7.6rem;
.detail-data-bottom { .detail-data-bottom {
padding-left: 0.75rem; // padding-left: 0.75rem;
.detail-data-li { .detail-data-li {
width: 3rem; // width: 3.4rem;
width: calc(50% - 0.2rem) !important;
margin: 0 0.1rem;
} }
} }
} }

159
src/views/centerairC/sysMonitor/monitorCenter.vue

@ -516,10 +516,10 @@
:class="{ startClass: towerValveInControlClass(0) }" :class="{ startClass: towerValveInControlClass(0) }"
></div> ></div>
<!-- 冷冻蝶阀数据定位 --> <!-- 冷冻蝶阀数据定位 -->
<div <!-- <div
class="frozenValve1" class="frozenValve1"
:class="{ startClass: frozenValveControlClass(0) }" :class="{ startClass: frozenValveControlClass(0) }"
></div> ></div> -->
<div <div
class="frozenValve2" class="frozenValve2"
:class="{ startClass: frozenValveControlClass(1) }" :class="{ startClass: frozenValveControlClass(1) }"
@ -529,10 +529,10 @@
:class="{ startClass: frozenValveControlClass(2) }" :class="{ startClass: frozenValveControlClass(2) }"
></div> ></div>
<!-- 冷却蝶阀数据定位 --> <!-- 冷却蝶阀数据定位 -->
<div <!-- <div
class="coolingValue1" class="coolingValue1"
:class="{ startClass: coolingValueControlClass(0) }" :class="{ startClass: coolingValueControlClass(0) }"
></div> ></div> -->
<div <div
class="coolingValue2" class="coolingValue2"
:class="{ startClass: coolingValueControlClass(1) }" :class="{ startClass: coolingValueControlClass(1) }"
@ -554,8 +554,8 @@
<!-- 冷冻水流 --> <!-- 冷冻水流 -->
<div class="freezingOutWater">{{ freezingOutWater }}/h</div> <div class="freezingOutWater">{{ freezingOutWater }}/h</div>
<!-- 冷冻进出水压力 --> <!-- 冷冻进出水压力 -->
<div class="freezingInPre">{{ freezingInPre }}kpa</div> <!-- <div class="freezingInPre">{{ freezingInPre }}kpa</div>
<div class="freezingOutPre">{{ freezingOutPre }}kpa</div> <div class="freezingOutPre">{{ freezingOutPre }}kpa</div> -->
<!-- 冷却进出水温度 --> <!-- 冷却进出水温度 -->
<div class="coolingInTem">{{ coolingInTem }}</div> <div class="coolingInTem">{{ coolingInTem }}</div>
<div class="coolingOutTem">{{ coolingOutTem }}</div> <div class="coolingOutTem">{{ coolingOutTem }}</div>
@ -592,6 +592,9 @@
connect: hostAndCoolingControlClass(this.coolingInletBuild), connect: hostAndCoolingControlClass(this.coolingInletBuild),
}" }"
></span> ></span>
<div class="outInre">
{{ getValueByType(this.coolingInletBuild, "13") }}bar
</div>
</div> </div>
<div class="water-flow-li"> <div class="water-flow-li">
<span>客房供冷进水阀:</span> <span>客房供冷进水阀:</span>
@ -601,13 +604,16 @@
connect: hostAndCoolingControlClass(this.coolingInletGuest), connect: hostAndCoolingControlClass(this.coolingInletGuest),
}" }"
></span> ></span>
<div class="outInre">
{{ getValueByType(this.coolingInletGuest, "13") }}bar
</div>
</div> </div>
</div> </div>
<line-children <line-children
:angle1="-110" :angle1="-110"
:angle2="0" :angle2="0"
:lineWidth1="230" :lineWidth1="230"
:lineWidth2="170" :lineWidth2="240"
class="coolingOut-line" class="coolingOut-line"
></line-children> ></line-children>
<!-- 供冷区出水阀 --> <!-- 供冷区出水阀 -->
@ -620,6 +626,9 @@
connect: hostAndCoolingControlClass(this.coolingOutletBuild), connect: hostAndCoolingControlClass(this.coolingOutletBuild),
}" }"
></span> ></span>
<div class="outInre">
{{ getValueByType(this.coolingOutletBuild, "13") }}bar
</div>
</div> </div>
<div class="water-flow-li"> <div class="water-flow-li">
<span>客房供冷出水阀:</span> <span>客房供冷出水阀:</span>
@ -629,13 +638,16 @@
connect: hostAndCoolingControlClass(this.coolingOutletGuest), connect: hostAndCoolingControlClass(this.coolingOutletGuest),
}" }"
></span> ></span>
<div class="outInre">
{{ getValueByType(this.coolingOutletGuest, "13") }}bar
</div>
</div> </div>
</div> </div>
<line-children <line-children
:angle1="-110" :angle1="-110"
:angle2="0" :angle2="0"
:lineWidth1="170" :lineWidth1="170"
:lineWidth2="170" :lineWidth2="240"
class="coolingIn-line" class="coolingIn-line"
></line-children> ></line-children>
<!--供暖区进水阀 --> <!--供暖区进水阀 -->
@ -646,6 +658,9 @@
class="break" class="break"
:class="{ connect: hostAndCoolingControlClass(this.hotInletBuild) }" :class="{ connect: hostAndCoolingControlClass(this.hotInletBuild) }"
></span> ></span>
<div class="outInre">
{{ getValueByType(this.hotInletBuild, "13") }}bar
</div>
</div> </div>
<div class="water-flow-li"> <div class="water-flow-li">
<span>客房供暖进水阀:</span> <span>客房供暖进水阀:</span>
@ -653,13 +668,16 @@
class="break" class="break"
:class="{ connect: hostAndCoolingControlClass(this.hotInletGuest) }" :class="{ connect: hostAndCoolingControlClass(this.hotInletGuest) }"
></span> ></span>
<div class="outInre">
{{ getValueByType(this.hotInletGuest, "13") }}bar
</div>
</div> </div>
</div> </div>
<line-children <line-children
:angle1="-20" :angle1="-45"
:angle2="0" :angle2="0"
:lineWidth1="140" :lineWidth1="90"
:lineWidth2="170" :lineWidth2="240"
class="hotOut-line" class="hotOut-line"
></line-children> ></line-children>
<!--供暖区出水阀 --> <!--供暖区出水阀 -->
@ -672,6 +690,9 @@
connect: hostAndCoolingControlClass(this.hotOutletBuild), connect: hostAndCoolingControlClass(this.hotOutletBuild),
}" }"
></span> ></span>
<div class="outInre">
{{ getValueByType(this.hotOutletBuild, "13") }}bar
</div>
</div> </div>
<div class="water-flow-li"> <div class="water-flow-li">
<span>客房供暖出水阀:</span> <span>客房供暖出水阀:</span>
@ -681,13 +702,16 @@
connect: hostAndCoolingControlClass(this.hotOutletGuest), connect: hostAndCoolingControlClass(this.hotOutletGuest),
}" }"
></span> ></span>
<div class="outInre">
{{ getValueByType(this.hotOutletGuest, "13") }}bar
</div>
</div> </div>
</div> </div>
<line-children <line-children
:angle1="-30" :angle1="-45"
:angle2="0" :angle2="0"
:lineWidth1="210" :lineWidth1="170"
:lineWidth2="170" :lineWidth2="240"
class="hotIn-line" class="hotIn-line"
></line-children> ></line-children>
</div> </div>
@ -1123,19 +1147,6 @@ export default {
this.freezingManifoldData(); this.freezingManifoldData();
break; break;
case "18": case "18":
let buildOutData = row.values;
buildOutData.forEach((item) => {
if (item.deviceName.includes("供冷")) {
this.coolingOutletBuild.push(item);
}
if (item.deviceName.includes("供暖")) {
this.hotOutletBuild.push(item);
}
});
console.log("裙楼供冷出水阀", this.coolingOutletBuild);
console.log("裙楼供暖出水阀", this.hotOutletBuild);
break;
case "19":
let buildInData = row.values; let buildInData = row.values;
buildInData.forEach((item) => { buildInData.forEach((item) => {
if (item.deviceName.includes("供冷")) { if (item.deviceName.includes("供冷")) {
@ -1148,20 +1159,20 @@ export default {
console.log("裙楼供冷进水阀", this.coolingInletBuild); console.log("裙楼供冷进水阀", this.coolingInletBuild);
console.log("裙楼供暖进水阀", this.hotInletBuild); console.log("裙楼供暖进水阀", this.hotInletBuild);
break; break;
case "20": case "19":
let guestOutData = row.values; let buildOutData = row.values;
guestOutData.forEach((item) => { buildOutData.forEach((item) => {
if (item.deviceName.includes("供冷")) { if (item.deviceName.includes("供冷")) {
this.coolingOutletGuest.push(item); this.coolingOutletBuild.push(item);
} }
if (item.deviceName.includes("供暖")) { if (item.deviceName.includes("供暖")) {
this.hotOutletGuest.push(item); this.hotOutletBuild.push(item);
} }
}); });
console.log("客房供冷出水阀", this.coolingOutletGuest); console.log("裙楼供冷出水阀", this.coolingOutletBuild);
console.log("客房供暖出水阀", this.hotOutletGuest); console.log("裙楼供暖出水阀", this.hotOutletBuild);
break; break;
case "21": case "20":
let guestInData = row.values; let guestInData = row.values;
guestInData.forEach((item) => { guestInData.forEach((item) => {
if (item.deviceName.includes("供冷")) { if (item.deviceName.includes("供冷")) {
@ -1174,6 +1185,19 @@ export default {
console.log("客房供冷进水阀", this.coolingInletGuest); console.log("客房供冷进水阀", this.coolingInletGuest);
console.log("客房供暖进水阀", this.hotInletGuest); console.log("客房供暖进水阀", this.hotInletGuest);
break; break;
case "21":
let guestOutData = row.values;
guestOutData.forEach((item) => {
if (item.deviceName.includes("供冷")) {
this.coolingOutletGuest.push(item);
}
if (item.deviceName.includes("供暖")) {
this.hotOutletGuest.push(item);
}
});
console.log("客房供冷出水阀", this.coolingOutletGuest);
console.log("客房供暖出水阀", this.hotOutletGuest);
break;
default: default:
break; break;
} }
@ -1445,8 +1469,10 @@ export default {
// console.log("targetPropertyName",targetPropertyName) // console.log("targetPropertyName",targetPropertyName)
// collectValue "0.00" // collectValue "0.00"
for (let i = 0; i < filteredProperties.length; i++) { for (let i = 0; i < filteredProperties.length; i++) {
const collectName = filteredProperties[i].collectName;
if ( if (
filteredProperties[i].collectName === targetPropertyName && collectName.includes(`${towerNumber}号冷却塔风机${item}`) &&
collectName.includes("运行") &&
Number(filteredProperties[i].collectValue) !== 0 Number(filteredProperties[i].collectValue) !== 0
) { ) {
if (index === 0 && item === 1) { if (index === 0 && item === 1) {
@ -1500,9 +1526,13 @@ export default {
// console.log("targetPropertyName",targetPropertyName) // console.log("targetPropertyName",targetPropertyName)
// collectValue "0.00" // collectValue "0.00"
for (let i = 0; i < filteredProperties.length; i++) { for (let i = 0; i < filteredProperties.length; i++) {
if (filteredProperties[i].collectName === targetPropertyName) { const collectName = filteredProperties[i].collectName;
if (
collectName.includes(`${towerNumber}号冷却塔风机${item}`) &&
collectName.includes("频率反馈")
) {
// coolingTowerHz // coolingTowerHz
const coolingTowerHzPropertyName = `coolingTowerHz${towerNumber}${item}`; const coolingTowerHzPropertyName = `coolingTowerHz${towerNumber}`;
// console.log( // console.log(
// "coolingTowerHzPropertyName---", // "coolingTowerHzPropertyName---",
// coolingTowerHzPropertyName // coolingTowerHzPropertyName
@ -1511,6 +1541,10 @@ export default {
const value = Number(filteredProperties[i].collectValue); const value = Number(filteredProperties[i].collectValue);
// 使 // 使
this[coolingTowerHzPropertyName] = value; this[coolingTowerHzPropertyName] = value;
// console.log(
// "coolingTowerHzPropertyName])",
// coolingTowerHzPropertyName
// );
// console.log("Number(filteredProperties[i].collectValue)", value); // console.log("Number(filteredProperties[i].collectValue)", value);
return true; return true;
} }
@ -1542,14 +1576,14 @@ export default {
// console.log("item.collectValue", item.collectValue); // console.log("item.collectValue", item.collectValue);
// //
if ( if (
item.collectName.includes("开到位") && item.collectName.includes("开到位") &&
Number(item.collectValue) == 1 Number(item.collectValue) == 1
) { ) {
valveOpenFeedbackFound = true; valveOpenFeedbackFound = true;
} }
// //
if ( if (
item.collectName.includes("关到位") && item.collectName.includes("关到位") &&
Number(item.collectValue) == 0 Number(item.collectValue) == 0
) { ) {
valveCloseFeedbackFound = true; valveCloseFeedbackFound = true;
@ -1583,14 +1617,14 @@ export default {
// console.log("item.collectValue", item.collectValue); // console.log("item.collectValue", item.collectValue);
// //
if ( if (
item.collectName.includes("开到位") && item.collectName.includes("开到位") &&
Number(item.collectValue) == 1 Number(item.collectValue) == 1
) { ) {
valveOpenFeedbackFound = true; valveOpenFeedbackFound = true;
} }
// //
if ( if (
item.collectName.includes("关到位") && item.collectName.includes("关到位") &&
Number(item.collectValue) == 0 Number(item.collectValue) == 0
) { ) {
valveCloseFeedbackFound = true; valveCloseFeedbackFound = true;
@ -1623,14 +1657,14 @@ export default {
if (item.paramType === "7") { if (item.paramType === "7") {
// //
if ( if (
item.collectName.includes("开到位") && item.collectName.includes("开到位") &&
Number(item.collectValue) !== 0 Number(item.collectValue) !== 0
) { ) {
valveOpenFeedbackFound = true; valveOpenFeedbackFound = true;
} }
// //
if ( if (
item.collectName.includes("关到位") && item.collectName.includes("关到位") &&
Number(item.collectValue) === 0 Number(item.collectValue) === 0
) { ) {
valveCloseFeedbackFound = true; valveCloseFeedbackFound = true;
@ -1663,14 +1697,14 @@ export default {
if (item.paramType === "7") { if (item.paramType === "7") {
// //
if ( if (
item.collectName.includes("开到位") && item.collectName.includes("开到位") &&
Number(item.collectValue) !== 0 Number(item.collectValue) !== 0
) { ) {
valveOpenFeedbackFound = true; valveOpenFeedbackFound = true;
} }
// //
if ( if (
item.collectName.includes("关到位") && item.collectName.includes("关到位") &&
Number(item.collectValue) === 0 Number(item.collectValue) === 0
) { ) {
valveCloseFeedbackFound = true; valveCloseFeedbackFound = true;
@ -1739,6 +1773,11 @@ export default {
} }
return false; return false;
}, },
//
getValueByType(arr, targetType) {
const targetItem = arr.find((item) => item.paramType === targetType);
return targetItem ? targetItem.collectValue : 0;
},
// //
getAlarnStatus() { getAlarnStatus() {
let data = { let data = {
@ -2642,7 +2681,7 @@ export default {
color: #ffffff; color: #ffffff;
position: absolute; position: absolute;
top: 0.95rem; top: 0.95rem;
left: 7.16rem; left: 7.22rem;
font-weight: bold; font-weight: bold;
transform: rotateX(20deg) rotateY(-25deg) rotateZ(-2deg); transform: rotateX(20deg) rotateY(-25deg) rotateZ(-2deg);
} }
@ -2807,7 +2846,7 @@ export default {
font-size: 0.2rem; font-size: 0.2rem;
// color: rgb(18, 155, 209); // color: rgb(18, 155, 209);
// color: rgb(147, 204, 236); // color: rgb(147, 204, 236);
color: rgb(144, 167, 197); color: #ffffff;
background-image: url(../../../assets/images/border1.png); background-image: url(../../../assets/images/border1.png);
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
@ -2851,7 +2890,7 @@ export default {
align-items: flex-start; align-items: flex-start;
justify-content: flex-start; justify-content: flex-start;
font-size: 0.2rem; font-size: 0.2rem;
color: rgb(144, 167, 197); color: #ffffff;
background-image: url(../../../assets/images/border4.png); background-image: url(../../../assets/images/border4.png);
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
@ -2870,7 +2909,7 @@ export default {
font-style: italic; font-style: italic;
font-weight: bold; font-weight: bold;
line-height: 0.6rem; line-height: 0.6rem;
color: rgba(209, 214, 223, 1); color: #ffffff;
padding-left: 0.5rem; padding-left: 0.5rem;
margin-bottom: 0.01rem; margin-bottom: 0.01rem;
margin-left: 0.4rem; margin-left: 0.4rem;
@ -3056,7 +3095,7 @@ export default {
z-index: 10; z-index: 10;
position: absolute; position: absolute;
top: 1.2rem; top: 1.2rem;
right: 4.5rem; right: 3.8rem;
font-size: 0.16rem; font-size: 0.16rem;
} }
.coolingIn-line { .coolingIn-line {
@ -3069,15 +3108,15 @@ export default {
.coolingIn-vavle { .coolingIn-vavle {
z-index: 10; z-index: 10;
position: absolute; position: absolute;
top: 2.0rem; top: 2rem;
right: 3.6rem; right: 2.8rem;
font-size: 0.16rem; font-size: 0.16rem;
} }
.hotIn-vavle { .hotIn-vavle {
z-index: 10; z-index: 10;
position: absolute; position: absolute;
top: 3.1rem; top: 2.93rem;
right: -0.5rem; right: -0.65rem;
font-size: 0.16rem; font-size: 0.16rem;
} }
.hotIn-line { .hotIn-line {
@ -3090,8 +3129,8 @@ export default {
.hotOut-vavle { .hotOut-vavle {
z-index: 10; z-index: 10;
position: absolute; position: absolute;
top: 3.96rem; top: 3.77rem;
right: -0.8rem; right: -0.9rem;
font-size: 0.16rem; font-size: 0.16rem;
} }
.hotOut-line { .hotOut-line {
@ -3101,6 +3140,12 @@ export default {
right: 3.1rem; right: 3.1rem;
font-size: 0.16rem; font-size: 0.16rem;
} }
.outInre {
font-size: 0.16rem;
font-weight: bold;
color: #ffffff;
margin-left: 0.1rem;
}
} }
// @media (min-width: 1240px) and (max-width: 1440px) { // @media (min-width: 1240px) and (max-width: 1440px) {
// } // }

Loading…
Cancel
Save