|
|
|
|
@ -174,13 +174,13 @@ |
|
|
|
|
<div class="flex-center-between" style="padding: 0 1rem"> |
|
|
|
|
<div class="open-txt"> |
|
|
|
|
{{ testObject1.name }} |
|
|
|
|
<span v-if="testObject1.funcCat == 1">{{ |
|
|
|
|
<!-- <span v-if="testObject1.funcCat == 1">{{ |
|
|
|
|
testObject1.mode == 0 |
|
|
|
|
? "通风" |
|
|
|
|
: testObject1.mode == 1 |
|
|
|
|
? "制热" |
|
|
|
|
: "制冷" |
|
|
|
|
}}</span> |
|
|
|
|
}}</span> --> |
|
|
|
|
<span v-if="testObject1.funcCat == 3">{{ |
|
|
|
|
testObject1.mode == 0 |
|
|
|
|
? "内机制热" |
|
|
|
|
@ -400,6 +400,7 @@ export default { |
|
|
|
|
noramlTotal: 0,//正常设备数量 |
|
|
|
|
warnEquip: 0,//告警设备数量 |
|
|
|
|
equipWarn: 0,//告警数量 |
|
|
|
|
intervalStatus: null,//1分钟轮询一次空调状态 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
@ -410,11 +411,14 @@ export default { |
|
|
|
|
if (this.setInterval) { |
|
|
|
|
clearInterval(this.setInterval); |
|
|
|
|
} |
|
|
|
|
if (this.intervalStatus) { |
|
|
|
|
clearInterval(this.intervalStatus); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.setInterval = setInterval(() => { |
|
|
|
|
this.getConditions(); //空调列表 |
|
|
|
|
this.getAirWarnList();//告警列表 |
|
|
|
|
}, 3600000); |
|
|
|
|
}, 5 * 60 * 1000); |
|
|
|
|
|
|
|
|
|
this.getConditions(); //空调列表 |
|
|
|
|
}, |
|
|
|
|
@ -537,6 +541,9 @@ export default { |
|
|
|
|
if (this.setInterval) { |
|
|
|
|
clearInterval(this.setInterval); |
|
|
|
|
} |
|
|
|
|
if (this.intervalStatus) { |
|
|
|
|
clearInterval(this.intervalStatus); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
this.getConditions(); //空调列表 |
|
|
|
|
@ -544,7 +551,7 @@ export default { |
|
|
|
|
this.setInterval = setInterval(() => { |
|
|
|
|
this.getConditions(); //空调列表 |
|
|
|
|
this.getAirWarnList();//告警列表 |
|
|
|
|
}, 3600000); |
|
|
|
|
}, 5 * 60 * 1000);//5分钟轮询一次 |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
let dom = document.getElementById('condi_box'); |
|
|
|
|
@ -646,6 +653,9 @@ export default { |
|
|
|
|
this.total = 0; //总条目数 |
|
|
|
|
this.build = i; |
|
|
|
|
this.floor = j; |
|
|
|
|
if (this.intervalStatus) { |
|
|
|
|
clearInterval(this.intervalStatus); |
|
|
|
|
} |
|
|
|
|
if (this.bimModel == 1) { |
|
|
|
|
commonValue.getUpdateMap("water", i, j); |
|
|
|
|
this.removeEvent(); |
|
|
|
|
@ -919,7 +929,8 @@ export default { |
|
|
|
|
this.testObject1.open = 1; |
|
|
|
|
var arr = bfHelper.getAll(); |
|
|
|
|
bfHelper.clearTags(); |
|
|
|
|
if (arr.length < 2) {getOAContent |
|
|
|
|
if (arr.length < 2) { |
|
|
|
|
getOAContent |
|
|
|
|
bfHelper.customTag( |
|
|
|
|
{ |
|
|
|
|
x: this.testObject1.xmove, |
|
|
|
|
@ -1053,6 +1064,9 @@ export default { |
|
|
|
|
code = e.target.id.substring(7); |
|
|
|
|
} |
|
|
|
|
if (code) { |
|
|
|
|
if (this.intervalStatus) { |
|
|
|
|
clearInterval(this.intervalStatus); |
|
|
|
|
} |
|
|
|
|
let funcCatObj = this.allDatas.find(item => { return item.code == code }); |
|
|
|
|
if (funcCatObj && funcCatObj.funcCat == 3) { |
|
|
|
|
//lora面板 |
|
|
|
|
@ -1070,6 +1084,7 @@ export default { |
|
|
|
|
this.isControl = true; |
|
|
|
|
this.clickCode = code; |
|
|
|
|
} |
|
|
|
|
this.doIntervalStatus(code, 3); |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
@ -1080,6 +1095,7 @@ export default { |
|
|
|
|
//新风不需要控制 |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
this.testObject1.funcCat = 1; |
|
|
|
|
if ( |
|
|
|
|
e.target.id == "condition-" + code || |
|
|
|
|
e.target.id == "temper-" + code || |
|
|
|
|
@ -1091,15 +1107,34 @@ export default { |
|
|
|
|
this.isControl = true; |
|
|
|
|
this.clickCode = code; |
|
|
|
|
} |
|
|
|
|
this.doIntervalStatus(code, 1); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//定时1分钟轮询一次空调运行状态 |
|
|
|
|
doIntervalStatus(code, type) { |
|
|
|
|
this.intervalStatus = setInterval(() => { |
|
|
|
|
if (type == 3) { |
|
|
|
|
queryLoraAll(code).then(res => { |
|
|
|
|
this.testObject1 = res.data.data; |
|
|
|
|
this.testObject1.funcCat = 3; |
|
|
|
|
}) |
|
|
|
|
} else if (type == 1) { |
|
|
|
|
getConditionData(code).then((res) => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.testObject1 = res.data.data; |
|
|
|
|
this.testObject1.funcCat = 1; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, 5 * 60 * 1000); |
|
|
|
|
}, |
|
|
|
|
removeEvent() { |
|
|
|
|
window.removeEventListener("click", this.addEvent); |
|
|
|
|
}, |
|
|
|
|
getContent(testObject) { |
|
|
|
|
// console.log(this.clickCode,testObject.code) |
|
|
|
|
// console.log(this.clickCode,testObject) |
|
|
|
|
let button = require("../../../public/img/monitoring/electricity/off-button.png"); |
|
|
|
|
let greenWind = require("../../../public/img/monitoring/electricity/green-wind.png"); |
|
|
|
|
let decrease = require("../../../public/img/monitoring/electricity/jian.png"); |
|
|
|
|
@ -1124,7 +1159,7 @@ export default { |
|
|
|
|
}">${testObject.temCur}</span><span id="tempac-${testObject.code |
|
|
|
|
}"> ℃</span> |
|
|
|
|
</span> |
|
|
|
|
<span style="font-size:14px;display:${testObject.code == this.clickCode ? "inline-block" : "none" |
|
|
|
|
<span style="font-size:16px;display:${testObject.code == this.clickCode ? "inline-block" : "none" |
|
|
|
|
}" id="temper-${testObject.code}">${testObject.name}</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|