Browse Source

1.修改热水系统实时监控页面

meizhou
selia-zx 3 days ago
parent
commit
bcdd625cc7
  1. 4
      .env.development
  2. 2398
      src/views/hotWater/waterMonitor/waterMonitorDetails copy.vue
  3. 157
      src/views/hotWater/waterMonitor/waterMonitorDetails.vue

4
.env.development

@ -7,9 +7,9 @@ ENV = 'development'
# 开发环境 # 开发环境
# VUE_APP_BASE_API = '/dev-api' # VUE_APP_BASE_API = '/dev-api'
# 后台 # 后台
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:8091' VUE_APP_BASE_API = 'http://106.55.173.225:8091'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

2398
src/views/hotWater/waterMonitor/waterMonitorDetails copy.vue

File diff suppressed because it is too large Load Diff

157
src/views/hotWater/waterMonitor/waterMonitorDetails.vue

@ -579,118 +579,27 @@
</div> </div>
<!-- 三个泵 --> <!-- 三个泵 -->
<div class="folw" v-else> <div class="folw" v-else>
<!-- 动态流程图 --> <div class="changeimage" v-if="isSHowWaterPump">
<div class="changeimage">
<div class="flowimg">
<!-- 整体图 -->
<img
class="supply3"
src="../../../assets/flowimg/supply-move3.gif"
alt=""
v-if="
[1, 2, '1', '2', '1.000', '2.000'].includes(threePumpObj.upWaterState1) ||
[1, 2, '1', '2', '1.000', '2.000'].includes(threePumpObj.upWaterState2) ||
[1, 2, '1', '2', '1.000', '2.000'].includes(threePumpObj.upWaterState3)
"
/>
<img
class="supply3"
v-else
src="../../../assets/flowimg/supply-move3.png"
alt=""
/>
<!-- 报警信号 -->
<img
class="warning"
src="../../../assets/images/warning.png"
alt=""
v-if="[1, '1','1.000'].includes(threePumpObj.isWarning)"
/>
<div <div
class="flow-text warning-text" class="iframeDiv"
v-if="[1, '1','1.000'].includes(threePumpObj.isWarning)" style="display: flex; flex-direction: column; gap: 10px"
> >
当前有报警信号触发 <iframe
src="https://mp.usr.cn/draw/s.html?s=r16650ip36&a=aHR0cHM6Ly9hcGltcC51c3IuY24vdXNyQ2xvdWQ=&l=cn"
frameborder="0"
style="width: 100%; height: 400px; border: none"
></iframe>
<iframe
src="https://mp.usr.cn/draw/s.html?s=1055cne5y8&a=aHR0cHM6Ly9hcGltcC51c3IuY24vdXNyQ2xvdWQ=&l=cn"
frameborder="0"
style="width: 100%; height: 400px; border: none"
></iframe>
</div> </div>
<!-- 三个泵 -->
<!-- 泵1定位 -->
<img
class="coolpum1"
src="../../../assets/flowimg/startpum.png"
alt=""
v-if="[1, 2, '1', '2', '1.000', '2.000'].includes(threePumpObj.upWaterState1)"
/>
<img
class="coolpum1"
v-else-if="[3, '3','3.000'].includes(threePumpObj.upWaterState1)"
src="../../../assets/flowimg/badpum.png"
alt=""
/>
<img
class="coolpum1"
v-else
src="../../../assets/flowimg/closepum.png"
alt=""
/>
<div class="pumpName1 flow-text">
泵1<span
class="pumpHz flow-text"
v-if="[1, 2, '1', '2', '1.000', '2.000'].includes(threePumpObj.upWaterState1)"
>:{{ Number(threePumpObj.freq1) }}Hz</span
>
</div>
<!-- 泵2定位 -->
<img
class="coolpum2"
src="../../../assets/flowimg/startpum.png"
alt=""
v-if="[1, 2, '1', '2', '1.000', '2.000'].includes(threePumpObj.upWaterState2)"
/>
<img
class="coolpum2"
v-else-if="[3, '3'].includes(threePumpObj.upWaterState2)"
src="../../../assets/flowimg/badpum.png"
alt=""
/>
<img
class="coolpum2"
v-else
src="../../../assets/flowimg/closepum.png"
alt=""
/>
<div class="pumpName2 flow-text">
泵2<span
class="pumpHz flow-text"
v-if="[1, 2, '1', '2', '1.000', '2.000'].includes(threePumpObj.upWaterState2)"
>:{{ Number(threePumpObj.freq2) }}Hz</span
>
</div>
<!-- 泵3定位 -->
<img
class="coolpum3"
src="../../../assets/flowimg/startpum.png"
alt=""
v-if="[1, 2, '1', '2', '1.000', '2.000'].includes(threePumpObj.upWaterState3)"
/>
<img
class="coolpum3"
v-else-if="[3, '3','3.000'].includes(threePumpObj.upWaterState3)"
src="../../../assets/flowimg/badpum.png"
alt=""
/>
<img
class="coolpum3"
v-else
src="../../../assets/flowimg/closepum.png"
alt=""
/>
<div class="pumpName3 flow-text">
泵3<span
class="pumpHz flow-text"
v-if="[1, 2, '1', '2', '1.000', '2.000'].includes(threePumpObj.upWaterState3)"
>:{{ Number(threePumpObj.freq3) }}Hz</span
>
</div> </div>
<div v-else>
<!-- 动态流程图 -->
<div class="changeimage">
<div class="flowimg">
<!-- 冷水水箱定位 --> <!-- 冷水水箱定位 -->
<img <img
class="waterBox" class="waterBox"
@ -719,14 +628,6 @@
<div>最大值:3.2</div> <div>最大值:3.2</div>
<div>实际值:{{ progress1 }}</div> <div>实际值:{{ progress1 }}</div>
</div> </div>
<div class="flow-text inPressure">
入口压力:{{ threePumpObj.inPress }}bar
</div>
<div class="flow-text goalPressure">
目标压力:{{ threePumpObj.goalPress }}bar
</div>
<div class="flow-text outPressure">
出口压力:{{ threePumpObj.outPress }}bar
</div> </div>
</div> </div>
</div> </div>
@ -789,7 +690,7 @@ export default {
pumname: "", pumname: "",
currentWeekday: "", currentWeekday: "",
isShowHotWater: false, isShowHotWater: false,
isSHowWaterPump: false,
threePumpObj: {}, threePumpObj: {},
}; };
}, },
@ -844,10 +745,10 @@ export default {
this.getDayData(); this.getDayData();
// 10 // 10
this.timer = setInterval(() => { this.timer = setInterval(() => {
if (this.isShowHotWater) { if (this.isShowHotWater && !this.isSHowWaterPump) {
this.baseMessgae(); this.baseMessgae();
}
this.sysStatus(); this.sysStatus();
}
}, 10000); }, 10000);
// //
this.nowTimer = setInterval(() => { this.nowTimer = setInterval(() => {
@ -993,17 +894,23 @@ export default {
this.progressName1 = "裙楼"; this.progressName1 = "裙楼";
this.progressName2 = "中厨"; this.progressName2 = "中厨";
this.isShowHotWater = true; this.isShowHotWater = true;
this.isSHowWaterPump = false;
this.baseMessgae(); this.baseMessgae();
this.sysStatus(); this.sysStatus();
} else if (this.currentName === "3楼") { } else if (this.currentName === "3楼") {
this.progressName1 = "高区"; this.progressName1 = "高区";
this.progressName2 = "中区"; this.progressName2 = "中区";
this.isShowHotWater = true; this.isShowHotWater = true;
this.isSHowWaterPump = false;
this.baseMessgae(); this.baseMessgae();
this.sysStatus(); this.sysStatus();
} else if (this.currentName.includes("水泵")) {
this.isShowHotWater = false;
this.isSHowWaterPump = true;
// this.sysStatus();
} else { } else {
this.isShowHotWater = false; this.isShowHotWater = false;
this.sysStatus(); this.isSHowWaterPump = false;
} }
} }
}); });
@ -1104,8 +1011,13 @@ export default {
this.isShowHotWater = true; this.isShowHotWater = true;
this.baseMessgae(); this.baseMessgae();
this.sysStatus(); this.sysStatus();
} else if (this.currentName.includes("水泵")) {
this.isShowHotWater = false;
this.isSHowWaterPump = true;
// this.sysStatus();
} else { } else {
this.isShowHotWater = false; this.isShowHotWater = false;
this.isSHowWaterPump = false;
this.sysStatus(); this.sysStatus();
} }
}, },
@ -1215,8 +1127,10 @@ export default {
// //
this.handlerow(firstRow); this.handlerow(firstRow);
// //
if (this.isShowHotWater && !isSHowWaterPump) {
this.$refs.maintable.setCurrentRow(firstRow); this.$refs.maintable.setCurrentRow(firstRow);
} }
}
} else { } else {
this.tableData = []; this.tableData = [];
} }
@ -2225,6 +2139,9 @@ export default {
color: #e40825; color: #e40825;
} }
} }
.iframeDiv {
width: 100%;
}
} }
.changecontent { .changecontent {

Loading…
Cancel
Save