Browse Source

1.修改风柜监测系统样式、loading问题

2.修改生活热水手机端样式
meizhou
selia-zx 4 weeks ago
parent
commit
8efdbb0a83
  1. 3
      src/views/aircAndWindc/awSysMonitor/asSysMonitorDetails.vue
  2. 31
      src/views/aircAndWindc/awSysMonitor/components/damperMonitor.vue
  3. 19
      src/views/aircAndWindc/awSysMonitor/components/normalMonitor.vue
  4. 63
      src/views/hotWater/waterMonitor/waterMonitorDetails.vue

3
src/views/aircAndWindc/awSysMonitor/asSysMonitorDetails.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="monitor" v-loading="loading"> <div class="monitor">
<div class="monitor-top"> <div class="monitor-top">
<img <img
class="title-left" class="title-left"
@ -101,7 +101,6 @@ export default {
name: "asSysMonitorDetails", name: "asSysMonitorDetails",
data() { data() {
return { return {
loading: false,
currentDate: new Date(), currentDate: new Date(),
nowTimer: null, nowTimer: null,
isShowWarning: false, // isShowWarning: false, //

31
src/views/aircAndWindc/awSysMonitor/components/damperMonitor.vue

@ -117,6 +117,7 @@
<el-form @submit.native.prevent> <el-form @submit.native.prevent>
<el-form-item> <el-form-item>
<el-input <el-input
style="width: 1.2rem"
@keyup.enter.native="handleEnter(damperOneObj, $event, '%')" @keyup.enter.native="handleEnter(damperOneObj, $event, '%')"
@input="handleInput(damperOneObj)" @input="handleInput(damperOneObj)"
@blur="handleBlur()" @blur="handleBlur()"
@ -139,6 +140,7 @@
<el-form @submit.native.prevent> <el-form @submit.native.prevent>
<el-form-item> <el-form-item>
<el-input <el-input
style="width: 1.2rem"
@keyup.enter.native="handleEnter(damperTwoObj, $event, '%')" @keyup.enter.native="handleEnter(damperTwoObj, $event, '%')"
@input="handleInput(damperTwoObj)" @input="handleInput(damperTwoObj)"
@blur="handleBlur()" @blur="handleBlur()"
@ -161,6 +163,7 @@
<el-form @submit.native.prevent> <el-form @submit.native.prevent>
<el-form-item> <el-form-item>
<el-input <el-input
style="width: 1.2rem"
@keyup.enter.native="handleEnter(damperTwoObj, $event, '%')" @keyup.enter.native="handleEnter(damperTwoObj, $event, '%')"
@input="handleInput(damperTwoObj)" @input="handleInput(damperTwoObj)"
@blur="handleBlur()" @blur="handleBlur()"
@ -214,6 +217,7 @@
active-text="开启" active-text="开启"
inactive-text="停止" inactive-text="停止"
@change="handleControlText(remoteManualObj)" @change="handleControlText(remoteManualObj)"
:disabled="automaticObj.collectValue"
> >
</el-switch> </el-switch>
</div> </div>
@ -230,6 +234,7 @@
active-text="开启" active-text="开启"
inactive-text="停止" inactive-text="停止"
@change="handleControlText(timeScheduleObj)" @change="handleControlText(timeScheduleObj)"
:disabled="automaticObj.collectValue"
> >
</el-switch> </el-switch>
</div> </div>
@ -276,8 +281,8 @@
<div class="fan-satatus1"> <div class="fan-satatus1">
<div class="context-li" v-if="isObjectValid(automaticObj)"> <div class="context-li" v-if="isObjectValid(automaticObj)">
<div class="wind-text">风机手自动状态:</div> <div class="wind-text">风机手自动状态:</div>
<div class="goodStautus" v-if="automaticObj.collectValue">手动</div> <div class="noneStautus" v-if="automaticObj.collectValue">手动</div>
<div class="noneStautus" v-else>自动</div> <div class="goodStautus" v-else>自动</div>
</div> </div>
<!-- <div class="context-li" v-if="isObjectValid(startControlObj)"> <!-- <div class="context-li" v-if="isObjectValid(startControlObj)">
<div class="wind-text">风机启停控制</div> <div class="wind-text">风机启停控制</div>
@ -1160,22 +1165,21 @@ export default {
this.loading = true; this.loading = true;
// ; // ;
setTimeout(() => { setTimeout(() => {
this.getWindList().finally(() => { this.getWindList(this.currentId);
// loading // loading
this.loading = false; this.loading = false;
});
}, 5000); }, 5000);
} else { } else {
// this.$modal.msgError(""); // this.$modal.msgError("");
console.log("应该更新状态的"); console.log("应该更新状态的");
// ; // ;
this.getWindList(); this.getWindList(this.currentId);
} }
}) })
.catch((error) => { .catch((error) => {
console.log("请求发生错误,更新设备状态", error); console.log("请求发生错误,更新设备状态", error);
// ; // ;
this.getWindList(); this.getWindList(this.currentId);
}); });
}, },
// //
@ -1362,10 +1366,9 @@ export default {
this.loading = true; this.loading = true;
// ; // ;
setTimeout(() => { setTimeout(() => {
this.getPolicyList().finally(() => { this.getPolicyList();
// loading // loading
this.loading = false; this.loading = false;
});
}, 500); }, 500);
} else { } else {
// this.$modal.msgError(""); // this.$modal.msgError("");
@ -1639,10 +1642,10 @@ export default {
} }
.wind-tem2 { .wind-tem2 {
z-index: 10; z-index: 10;
width: 3.7rem; // width: 3.8rem;
position: absolute; position: absolute;
top: 2.2rem; top: 2.2rem;
right: -1.1rem; left: 10.55rem;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
@ -1658,10 +1661,10 @@ export default {
} }
.wind-tem3 { .wind-tem3 {
z-index: 10; z-index: 10;
width: 3.47rem; // width: 3.57rem;
position: absolute; position: absolute;
top: 4.1rem; top: 4.1rem;
right: -0.9rem; left: 10.55rem;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
@ -1677,10 +1680,10 @@ export default {
} }
.wind-tem4 { .wind-tem4 {
z-index: 10; z-index: 10;
width: 3.47rem; // width: 3.57rem;
position: absolute; position: absolute;
top: 5.9rem; top: 5.9rem;
right: -0.9rem; left: 10.55rem;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;

19
src/views/aircAndWindc/awSysMonitor/components/normalMonitor.vue

@ -166,6 +166,7 @@
active-text="开启" active-text="开启"
inactive-text="停止" inactive-text="停止"
@change="handleControlText(startControlObj)" @change="handleControlText(startControlObj)"
:disabled="automaticObj.collectValue"
> >
</el-switch> </el-switch>
</div> </div>
@ -694,26 +695,25 @@ export default {
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.$modal.msgSuccess("指令下发成功!"); this.$modal.msgSuccess("指令下发成功!");
// loading // // loading
this.loading = true; // this.loading = true;
// ; // ;
setTimeout(() => { setTimeout(() => {
this.getWindList().finally(() => { this.getWindList(this.currentId);
// loading
this.loading = false;
});
}, 5000); }, 5000);
// // loading
// this.loading = false;
} else { } else {
// this.$modal.msgError(""); // this.$modal.msgError("");
console.log("应该更新状态的"); console.log("应该更新状态的");
// ; // ;
this.getWindList(); this.getWindList(this.currentId);
} }
}) })
.catch((error) => { .catch((error) => {
console.log("请求发生错误,更新设备状态", error); console.log("请求发生错误,更新设备状态", error);
// ; // ;
this.getWindList(); this.getWindList(this.currentId);
}); });
}, },
// //
@ -900,10 +900,9 @@ export default {
this.loading = true; this.loading = true;
// ; // ;
setTimeout(() => { setTimeout(() => {
this.getPolicyList().finally(() => { this.getPolicyList();
// loading // loading
this.loading = false; this.loading = false;
});
}, 500); }, 500);
} else { } else {
// this.$modal.msgError(""); // this.$modal.msgError("");

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

@ -740,7 +740,7 @@ export default {
this.$router.push("/alarm/alarmRecord"); this.$router.push("/alarm/alarmRecord");
}, },
getImageSrc(item) { getImageSrc(item) {
console.log("item", item); // console.log("item", item);
if (item.runState === "1" && item.isFault !== "1") { if (item.runState === "1" && item.isFault !== "1") {
// 使 require // 使 require
return require("@/assets/flowimg/starthotpum.png"); return require("@/assets/flowimg/starthotpum.png");
@ -1959,6 +1959,61 @@ export default {
} }
} }
} }
//
@media (min-width: 0px) and (max-width: 990px) {
.buildingDiv {
padding-left: 0.54rem !important;
margin-bottom: 0.2rem !important;
.title-bg {
width: 2.08rem !important;
height: 0.38rem !important;
}
.title-word {
font-size: 15px !important;
}
}
.app-container .left-tree .base-mes {
padding: 0.2rem 0.1rem !important;
font-size: 14px !important;
border-radius: 0.06rem !important;
}
.app-container .left-tree .base-mes .base-title {
font-size: 15px !important;
}
.app-container .left-tree .base-mes .base-height {
height: 5.7rem !important;
}
.app-container .right-monitor .folw .changecontent .tablemaeta {
font-size: 14px !important;
}
.app-container {
padding: 0rem 0.2rem 0 0.35rem !important;
}
.app-container .left-tree {
width: 200px !important;
min-height: 340px !important;
padding: 0.15rem 0.1rem 0.1rem 0.1rem !important;
}
.app-container .tree-div {
height: 300px !important;
width: 100%;
overflow-x: hidden !important;
}
.app-container .right-monitor {
width: calc(100% - 210px) !important;
.folw {
.changecontent {
border-radius: 0.06rem !important;
height: 300px !important;
padding: 0.35rem 0.1rem 0.1rem 0.1rem !important;
margin-top: 0.4rem !important;
}
}
}
.custom-tree-node {
font-size: 12px !important;
}
}
</style> </style>
<style scoped> <style scoped>
/* 自定义高亮颜色 */ /* 自定义高亮颜色 */
@ -1970,4 +2025,10 @@ export default {
/* color: #f56c6c; */ /* color: #f56c6c; */
color: #25f1f8; color: #25f1f8;
} }
/* 手机端样式 */
@media (min-width: 0px) and (max-width: 990px) {
.left-tree >>> .el-tree-node__content > .el-tree-node__expand-icon {
padding: 3px !important;
}
}
</style> </style>

Loading…
Cancel
Save