|
|
|
|
@ -48,8 +48,8 @@
|
|
|
|
|
<div class="flow-text text3">无线网关</div> |
|
|
|
|
<div class="flow-text text4">回水阀</div> |
|
|
|
|
<div class="flow-text text5">房间</div> |
|
|
|
|
<div class="flow-text text20">水箱1</div> |
|
|
|
|
<div class="flow-text text21">水箱2</div> |
|
|
|
|
<div class="flow-text text20">水箱1(总容量:2.5米)</div> |
|
|
|
|
<div class="flow-text text21">水箱2(总容量:2.5米)</div> |
|
|
|
|
<!-- 供水定位 --> |
|
|
|
|
<img class="supply" v-if=" |
|
|
|
|
this.upWaterState1 === '1' || |
|
|
|
|
@ -77,10 +77,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 循环加热泵定位--> |
|
|
|
|
<img class="cycle-pipeline" src="../../../assets/flowimg/cycle-pipeline.png" alt="" /> |
|
|
|
|
<img class="cyclepum1" :src="getCyclePump1Img()" alt="" |
|
|
|
|
<img class="cycle-pipeline" :src="getCyclePipelineImg()" alt="" /> |
|
|
|
|
<img class="cyclepum1" :src="getCyclePumpImg('loopPumpState1')" alt="" |
|
|
|
|
@click="handleCyclePumpClick('主楼1号循环泵')" /> |
|
|
|
|
<img class="cyclepum2" :src="getCyclePump2Img()" alt="" |
|
|
|
|
<img class="cyclepum2" :src="getCyclePumpImg('loopPumpState2')" alt="" |
|
|
|
|
@click="handleCyclePumpClick('主楼2号循环泵')" /> |
|
|
|
|
<!-- 热泵定位 --> |
|
|
|
|
<div :class="getHotPumPositionClass"> |
|
|
|
|
@ -90,14 +90,14 @@
|
|
|
|
|
<div class="hotPump-name">{{ item.pumpName }}</div> |
|
|
|
|
<img class="hotPump-img" :src="getImageSrc(item)" alt="" |
|
|
|
|
@click="handleHotPumpClick(item)" /> |
|
|
|
|
<!-- <div class="hotPump-tem1">温度:{{ item.waterTemp }}℃</div> |
|
|
|
|
<!-- <div class="hotPump-tem1">温度:{{ item.tempSet }}℃</div> |
|
|
|
|
--> |
|
|
|
|
<img class="tem2" src="../../../assets/flowimg/thermometer.png" alt="" /> |
|
|
|
|
<div class="temContainer2"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.waterTemp + '%' }"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.tempSet + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<b class="temdiv2">{{ item.waterTemp }}℃</b> |
|
|
|
|
<b class="temdiv2">{{ item.tempSet }}℃</b> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<img class="hotPump-img" :src="getImageSrc(item)" alt="" |
|
|
|
|
@ -105,10 +105,10 @@
|
|
|
|
|
<div class="hotPump-name">{{ item.pumpName }}</div> |
|
|
|
|
<img class="tem2" src="../../../assets/flowimg/thermometer.png" alt="" /> |
|
|
|
|
<div class="temContainer2"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.waterTemp + '%' }"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.tempSet + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<b class="temdiv2">{{ item.waterTemp }}℃</b> |
|
|
|
|
<b class="temdiv2">{{ item.tempSet }}℃</b> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
<template v-else-if="tableData.length === 8"> |
|
|
|
|
@ -117,15 +117,15 @@
|
|
|
|
|
<div class="hotPump-name">{{ item.pumpName }}</div> |
|
|
|
|
<img class="hotPump-img" :src="getImageSrc(item)" alt="" |
|
|
|
|
@click="handleHotPumpClick(item)" /> |
|
|
|
|
<!-- <div class="hotPump-tem1">温度:{{ item.waterTemp }}℃</div> |
|
|
|
|
<!-- <div class="hotPump-tem1">温度:{{ item.tempSet }}℃</div> |
|
|
|
|
--> |
|
|
|
|
<img class="tem2" src="../../../assets/flowimg/thermometer.png" |
|
|
|
|
alt="" /> |
|
|
|
|
<div class="temContainer2"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.waterTemp + '%' }"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.tempSet + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<b class="temdiv2">{{ item.waterTemp }}℃</b> |
|
|
|
|
<b class="temdiv2">{{ item.tempSet }}℃</b> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<div class="hotPump-name">{{ item.pumpName }}</div> |
|
|
|
|
@ -134,10 +134,10 @@
|
|
|
|
|
<img class="tem1" src="../../../assets/flowimg/thermometer.png" |
|
|
|
|
alt="" /> |
|
|
|
|
<div class="temContainer1"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.waterTemp + '%' }"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.tempSet + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<b class="temdiv1">{{ item.waterTemp }}℃</b> |
|
|
|
|
<b class="temdiv1">{{ item.tempSet }}℃</b> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
@ -145,15 +145,15 @@
|
|
|
|
|
<img class="hotPump-img" :src="getImageSrc(item)" alt="" |
|
|
|
|
@click="handleHotPumpClick(item)" /> |
|
|
|
|
<div class="hotPump-name">{{ item.pumpName }}</div> |
|
|
|
|
<!-- <div class="hotPump-tem1">温度:{{ item.waterTemp }}℃</div> |
|
|
|
|
<!-- <div class="hotPump-tem1">温度:{{ item.tempSet }}℃</div> |
|
|
|
|
--> |
|
|
|
|
<img class="tem2" src="../../../assets/flowimg/thermometer.png" |
|
|
|
|
alt="" /> |
|
|
|
|
<div class="temContainer2"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.waterTemp + '%' }"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.tempSet + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<b class="temdiv2">{{ item.waterTemp }}℃</b> |
|
|
|
|
<b class="temdiv2">{{ item.tempSet }}℃</b> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<img class="hotPump-img" :src="getImageSrc(item)" alt="" |
|
|
|
|
@ -162,10 +162,10 @@
|
|
|
|
|
<img class="tem1" src="../../../assets/flowimg/thermometer.png" |
|
|
|
|
alt="" /> |
|
|
|
|
<div class="temContainer1"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.waterTemp + '%' }"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.tempSet + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<b class="temdiv1">{{ item.waterTemp }}℃</b> |
|
|
|
|
<b class="temdiv1">{{ item.tempSet }}℃</b> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
@ -190,12 +190,12 @@
|
|
|
|
|
<div class="progressContainer1" v-if="getWaterPercentage(progress2, 2.5) > 50"> |
|
|
|
|
<div class="progress" :style="{ height: getWaterPercentage(progress2, 2.5) + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
<b class="propo">{{ progress2 }}米</b> |
|
|
|
|
<b class="propo">实际容量:{{ progress2 }}米</b> |
|
|
|
|
</div> |
|
|
|
|
<div class="progressContainer2" v-else> |
|
|
|
|
<div class="progress" :style="{ height: getWaterPercentage(progress2, 2.5) + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
<b class="propo">{{ progress2 }}米</b> |
|
|
|
|
<b class="propo">实际容量:{{ progress2 }}米</b> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- 保温水箱1定位 --> |
|
|
|
|
@ -211,12 +211,12 @@
|
|
|
|
|
<div class="progressContainer3" v-if="getWaterPercentage(progress1, 2.5) > 50"> |
|
|
|
|
<div class="progress" :style="{ height: getWaterPercentage(progress1, 2.5) + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
<b class="propo">{{ progress1 }}米</b> |
|
|
|
|
<b class="propo">实际容量:{{ progress1 }}米</b> |
|
|
|
|
</div> |
|
|
|
|
<div class="progressContainer4" v-else> |
|
|
|
|
<div class="progress" :style="{ height: getWaterPercentage(progress1, 2.5) + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
<b class="propo">{{ progress1 }}米</b> |
|
|
|
|
<b class="propo">实际容量:{{ progress1 }}米</b> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
@ -232,6 +232,7 @@
|
|
|
|
|
<div class="flow-text text17">低区回水泵1</div> |
|
|
|
|
<div class="flow-text text18">低区回水泵2</div> |
|
|
|
|
<div class="flow-text text19">回水管</div> |
|
|
|
|
<div class="flow-text text22">水箱(总容量:2.5米)</div> |
|
|
|
|
<!-- 左上 --> |
|
|
|
|
<img class="upperLeft" src="../../../assets/flowimg/upperLeft.png" alt="" /> |
|
|
|
|
<!-- 低区回水 --> |
|
|
|
|
@ -271,10 +272,10 @@
|
|
|
|
|
@click="handleHotPumpClick(item)" alt="" /> |
|
|
|
|
<img class="tem1" src="../../../assets/flowimg/thermometer.png" alt="" /> |
|
|
|
|
<div class="temContainer1"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.waterTemp + '%' }"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.tempSet + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<b class="temdiv1">{{ item.waterTemp }}℃</b> |
|
|
|
|
<b class="temdiv1">{{ item.tempSet }}℃</b> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<img class="hotPump-img" :src="getImageSrc(item)" |
|
|
|
|
@ -282,10 +283,10 @@
|
|
|
|
|
<div class="hotPump-name">{{ item.pumpName }}</div> |
|
|
|
|
<img class="tem1" src="../../../assets/flowimg/thermometer.png" alt="" /> |
|
|
|
|
<div class="temContainer1"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.waterTemp + '%' }"> |
|
|
|
|
<div class="temprogress" :style="{ height: item.tempSet + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<b class="temdiv1">{{ item.waterTemp }}℃</b> |
|
|
|
|
<b class="temdiv1">{{ item.tempSet }}℃</b> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
@ -309,12 +310,12 @@
|
|
|
|
|
<div class="progressContainer5" v-if="getWaterPercentage(progress1, 2.5) > 50"> |
|
|
|
|
<div class="progress" :style="{ height: getWaterPercentage(progress1, 2.5) + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
<b class="propo">{{ progress1 }}米</b> |
|
|
|
|
<b class="propo">实际容量:{{ progress1 }}米</b> |
|
|
|
|
</div> |
|
|
|
|
<div class="progressContainer6" v-else> |
|
|
|
|
<div class="progress" :style="{ height: getWaterPercentage(progress1, 2.5) + '%' }"> |
|
|
|
|
</div> |
|
|
|
|
<b class="propo">{{ progress1 }}米</b> |
|
|
|
|
<b class="propo">实际容量:{{ progress1 }}米</b> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
@ -1052,21 +1053,24 @@ export default {
|
|
|
|
|
isHotPumpRunning() { |
|
|
|
|
return this.tableData.some(item => Number(item.runState) !== 0); |
|
|
|
|
}, |
|
|
|
|
// 获取主楼-循环泵1的图片 |
|
|
|
|
getCyclePump1Img() { |
|
|
|
|
// 获取循环泵图片(通用方法) |
|
|
|
|
getCyclePumpImg(stateKey) { |
|
|
|
|
if (this.tableData.length === 0) return require('../../../assets/flowimg/closepum.png'); |
|
|
|
|
const state = Number(this.tableData[0].loopPumpState1); |
|
|
|
|
const state = Number(this.tableData[0][stateKey]); |
|
|
|
|
if (state === 1) return require('../../../assets/flowimg/startpum.png'); |
|
|
|
|
if (state === 2) return require('../../../assets/flowimg/badpum.png'); |
|
|
|
|
return require('../../../assets/flowimg/closepum.png'); |
|
|
|
|
}, |
|
|
|
|
// 获取主楼-循环泵2的图片 |
|
|
|
|
getCyclePump2Img() { |
|
|
|
|
if (this.tableData.length === 0) return require('../../../assets/flowimg/closepum.png'); |
|
|
|
|
const state = Number(this.tableData[0].loopPumpState2); |
|
|
|
|
if (state === 1) return require('../../../assets/flowimg/startpum.png'); |
|
|
|
|
if (state === 2) return require('../../../assets/flowimg/badpum.png'); |
|
|
|
|
return require('../../../assets/flowimg/closepum.png'); |
|
|
|
|
// 获取循环管道图片(判断是否显示动态图) |
|
|
|
|
getCyclePipelineImg() { |
|
|
|
|
if (this.tableData.length === 0) return require('../../../assets/flowimg/cycle-pipeline.png'); |
|
|
|
|
const state1 = Number(this.tableData[0].loopPumpState1); |
|
|
|
|
const state2 = Number(this.tableData[0].loopPumpState2); |
|
|
|
|
// 如果任一循环泵状态为1,则显示动态图 |
|
|
|
|
if (state1 === 1 || state2 === 1) { |
|
|
|
|
return require('../../../assets/flowimg/cycle-pipeline.gif'); |
|
|
|
|
} |
|
|
|
|
return require('../../../assets/flowimg/cycle-pipeline.png'); |
|
|
|
|
}, |
|
|
|
|
// 点击热泵图片事件 |
|
|
|
|
handleHotPumpClick(item) { |
|
|
|
|
@ -1701,14 +1705,20 @@ export default {
|
|
|
|
|
.text20 { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 3.4rem; |
|
|
|
|
left: 5.4rem; |
|
|
|
|
left: 4.8rem; |
|
|
|
|
z-index: 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.text21 { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 3.4rem; |
|
|
|
|
left: 2.8rem; |
|
|
|
|
left: 2.2rem; |
|
|
|
|
z-index: 1; |
|
|
|
|
} |
|
|
|
|
.text22 { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 3.2rem; |
|
|
|
|
left: 2rem; |
|
|
|
|
z-index: 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -1944,7 +1954,7 @@ export default {
|
|
|
|
|
width: 0.6rem; |
|
|
|
|
height: 1.15rem; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 1.9rem; |
|
|
|
|
top: 1.7rem; |
|
|
|
|
left: 3rem; |
|
|
|
|
z-index: 3; |
|
|
|
|
} |
|
|
|
|
@ -2009,7 +2019,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
.waterBox3 { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 0.7rem; |
|
|
|
|
top: 0.5rem; |
|
|
|
|
left: 1.6rem; |
|
|
|
|
width: 2.16rem; |
|
|
|
|
height: 2.6rem; |
|
|
|
|
@ -2045,7 +2055,7 @@ export default {
|
|
|
|
|
letter-spacing: 0.01rem; |
|
|
|
|
color: #d22727; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 1.8rem; |
|
|
|
|
top: 1.6rem; |
|
|
|
|
left: 3rem; |
|
|
|
|
z-index: 3; |
|
|
|
|
} |
|
|
|
|
@ -2077,6 +2087,7 @@ export default {
|
|
|
|
|
color: #d22727; |
|
|
|
|
position: absolute; |
|
|
|
|
top: -0.3rem; |
|
|
|
|
left:-0.5rem; |
|
|
|
|
z-index: 3; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
} |
|
|
|
|
@ -2109,6 +2120,7 @@ export default {
|
|
|
|
|
color: #d22727; |
|
|
|
|
position: absolute; |
|
|
|
|
top: -0.3rem; |
|
|
|
|
left:-0.5rem; |
|
|
|
|
z-index: 3; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
} |
|
|
|
|
@ -2141,6 +2153,7 @@ export default {
|
|
|
|
|
color: #d22727; |
|
|
|
|
position: absolute; |
|
|
|
|
top: -0.3rem; |
|
|
|
|
left:-0.4rem; |
|
|
|
|
z-index: 3; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
} |
|
|
|
|
@ -2173,6 +2186,7 @@ export default {
|
|
|
|
|
color: #d22727; |
|
|
|
|
position: absolute; |
|
|
|
|
top: -0.3rem; |
|
|
|
|
left:-0.4rem; |
|
|
|
|
z-index: 3; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
} |
|
|
|
|
@ -2184,7 +2198,7 @@ export default {
|
|
|
|
|
background-color: #dff1fa; |
|
|
|
|
margin-left: 2%; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 1.7rem; |
|
|
|
|
top: 1.5rem; |
|
|
|
|
left: 1.9rem; |
|
|
|
|
border: solid 0.01rem #11aaea; |
|
|
|
|
z-index: 3; |
|
|
|
|
@ -2205,6 +2219,7 @@ export default {
|
|
|
|
|
color: #d22727; |
|
|
|
|
position: absolute; |
|
|
|
|
top: -0.3rem; |
|
|
|
|
left:-0.4rem; |
|
|
|
|
z-index: 3; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
} |
|
|
|
|
@ -2216,7 +2231,7 @@ export default {
|
|
|
|
|
background-color: #dff1fa; |
|
|
|
|
margin-left: 2%; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 1.7rem; |
|
|
|
|
top: 1.5rem; |
|
|
|
|
left: 1.9rem; |
|
|
|
|
border: solid 0.01rem red; |
|
|
|
|
z-index: 3; |
|
|
|
|
@ -2237,6 +2252,7 @@ export default {
|
|
|
|
|
color: #d22727; |
|
|
|
|
position: absolute; |
|
|
|
|
top: -0.3rem; |
|
|
|
|
left:-0.4rem; |
|
|
|
|
z-index: 3; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
} |
|
|
|
|
|