diff --git a/public/img/monitoring/device_online.png b/public/img/monitoring/device_online.png new file mode 100644 index 0000000..d9626f8 Binary files /dev/null and b/public/img/monitoring/device_online.png differ diff --git a/src/components/monitoring/conditioner.vue b/src/components/monitoring/conditioner.vue index c11e9b9..ee11e2e 100644 --- a/src/components/monitoring/conditioner.vue +++ b/src/components/monitoring/conditioner.vue @@ -198,7 +198,7 @@ ? "制冷" : testObject1.mode == 9 ? "通风" - : "内机地暖同时制热" + : "" }}
@@ -209,7 +209,8 @@
-
+
@@ -291,6 +292,11 @@
+ +
+ +
设备离线
+
@@ -424,7 +430,7 @@ export default { bfHelper.customTag( { x: item.xmove, y: item.ymove, z: item.zmove }, null, - this.getContent(item) + item.funcCat == 1 ? this.getContent(item) : item.funcCat == 2 ? this.getOAContent(item) : this.getMbContent(item) ); }); }, @@ -434,14 +440,14 @@ export default { bfHelper.customTag( this.position, null, - this.getContent(this.testObject1) + this.testObject1.funcCat == 1 ? this.getContent(this.testObject1) : this.testObject1.funcCat == 2 ? this.getOAContent(this.testObject1) : this.getMbContent(this.testObject1) ); } else if (this.conditionNum == 2) { this.allDatas.forEach((item) => { bfHelper.customTag( { x: item.xmove, y: item.ymove, z: item.zmove }, null, - this.getContent(item) + item.funcCat == 1 ? this.getContent(item) : item.funcCat == 2 ? this.getOAContent(item) : this.getMbContent(item) ); }); } @@ -698,7 +704,7 @@ export default { z: item.zmove, }, null, - this.getContent(item) + item.funcCat == 1 ? this.getContent(item) : item.funcCat == 2 ? this.getOAContent(item) : this.getMbContent(item) ); }); } @@ -726,7 +732,7 @@ export default { setLoraTemp(this.testObject1.code, this.testObject1.temSetting).then(res => { if (res.data.code == 200) { this.$message.success('温度设置成功'); - }else{ + } else { this.$message.error('温度设置失败'); this.testObject1.temSetting++; } @@ -759,7 +765,7 @@ export default { setLoraTemp(this.testObject1.code, this.testObject1.temSetting).then(res => { if (res.data.code == 200) { this.$message.success('温度设置成功'); - }else{ + } else { this.$message.error('温度设置失败'); this.testObject1.temSetting--; } @@ -848,7 +854,7 @@ export default { z: this.testObject1.zmove, }, null, - this.getContent(this.testObject1) + this.testObject1.funcCat == 1 ? this.getContent(this.testObject1) : this.testObject1.funcCat == 2 ? this.getOAContent(this.testObject1) : this.getMbContent(this.testObject1) ); } else { this.allDatas.forEach((item) => { @@ -862,7 +868,7 @@ export default { z: item.zmove, }, null, - this.getContent(item) + item.funcCat == 1 ? this.getContent(item) : item.funcCat == 2 ? this.getOAContent(item) : this.getMbContent(item) ); }); } @@ -899,7 +905,7 @@ export default { z: this.testObject1.zmove, }, null, - this.testObject1.funcCat == 1 ? this.getContent(this.testObject1) : this.testObject1.funcCat == 1 ? this.getOAContent(this.testObject1) : this.getMbContent(this.testObject1) + this.testObject1.funcCat == 1 ? this.getContent(this.testObject1) : this.testObject1.funcCat == 2 ? this.getOAContent(this.testObject1) : this.getMbContent(this.testObject1) ); } else { this.allDatas.forEach((item) => { @@ -913,7 +919,7 @@ export default { z: item.zmove, }, null, - item.funcCat == 1 ? this.getContent(item) : item.funcCat == 1 ? this.getOAContent(item) : this.getMbContent(item) + item.funcCat == 1 ? this.getContent(item) : item.funcCat == 2 ? this.getOAContent(item) : this.getMbContent(item) ); }); } @@ -1006,10 +1012,6 @@ export default { // }, addEvent(e) { let code = null; - let funcCat = null; - if (e.target.id.indexOf("funcCat") != -1) { - funcCat = e.target.id.substring(7); - } if (e.target.id.indexOf("condition") != -1) { code = e.target.id.substring(10); } @@ -1029,13 +1031,19 @@ export default { code = e.target.id.substring(7); } if (code) { - if (funcCat == 3) { + let funcCatObj = this.allDatas.find(item => { return item.code == code }); + if (funcCatObj && funcCatObj.funcCat == 3) { //lora面板 queryLoraAll(code).then(res => { this.testObject1 = res.data.data; + this.testObject1.funcCat = 3; if ( e.target.id == "condition-" + code || - e.target.id == "funcCat-" + code + e.target.id == "temper-" + code || + e.target.id == "tempea-" + code || + e.target.id == "tempec-" + code || + e.target.id == "tempac-" + code || + e.target.id == "temped-" + code ) { this.isControl = true; this.clickCode = code; @@ -1121,16 +1129,13 @@ export default { //空调面板 getMbContent(testObject) { // console.log('空调面板',testObject) - testObject.xmove = '86462.91989146004'; - testObject.ymove = '-18215.882156436604'; - testObject.zmove = '0.14878788590431213'; let bgImg1 = require("../../../public/img/monitoring/electricity/condition_mb.png"); - let content = `
-
+
- ${testObject.name} + ${testObject.name}
diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue index 88ed3b4..6e4bf4b 100644 --- a/src/page/index/top/index.vue +++ b/src/page/index/top/index.vue @@ -53,8 +53,8 @@ -->
-
张华(建设指挥部)
-
2022-01-17
+
{{userInfo.user_name}}
+
{{currentDate}}
@@ -87,6 +87,9 @@ fullscreenToggel, listenfullscreen } from "@/util/util"; + import { + dateFormat + } from "@/util/date"; import topLock from "./top-lock"; import topMenu from "./top-menu"; import topSearch from "./top-search"; @@ -109,7 +112,9 @@ }, name: "top", data() { - return {}; + return { + currentDate: dateFormat(new Date(),'yyyy-MM-dd') + }; }, filters: {}, created() {}, @@ -182,4 +187,4 @@ .top-bar__item { font-size: 26px; } - +