|
@@ -169,6 +169,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import $mqtt from '@/utils/mqtt.min.js';
|
|
import { config } from '@/api/request/config.js'
|
|
import { config } from '@/api/request/config.js'
|
|
import { lablayout,evacuate,closure,lineEvacuate,getRedis,getDeviceList,textParseUrlIps,laboratoryInfo,
|
|
import { lablayout,evacuate,closure,lineEvacuate,getRedis,getDeviceList,textParseUrlIps,laboratoryInfo,
|
|
getCameraByFloor,lineEvacuateTow,treeselectByUser,getBuilding,getDeviceListBySub,
|
|
getCameraByFloor,lineEvacuateTow,treeselectByUser,getBuilding,getDeviceListBySub,
|
|
@@ -251,7 +252,7 @@ export default {
|
|
address:"",
|
|
address:"",
|
|
videoHardwareNUM:[],//实验室和楼道摄像头编码
|
|
videoHardwareNUM:[],//实验室和楼道摄像头编码
|
|
outfireData:{},//一键灭火
|
|
outfireData:{},//一键灭火
|
|
- timer:'',
|
|
|
|
|
|
+
|
|
countdown:'',//倒计时
|
|
countdown:'',//倒计时
|
|
timer2: null,//倒计时
|
|
timer2: null,//倒计时
|
|
dialogVisible:false,//一键灭火弹出层
|
|
dialogVisible:false,//一键灭火弹出层
|
|
@@ -267,9 +268,10 @@ export default {
|
|
this.itemData.subjectId=85
|
|
this.itemData.subjectId=85
|
|
this.firedeviceStatus();
|
|
this.firedeviceStatus();
|
|
//定时请求一键灭火设备状态
|
|
//定时请求一键灭火设备状态
|
|
- //this.timer=setInterval(self.firedeviceStatusTiming,5000)
|
|
|
|
|
|
+
|
|
this.treeselectByUser(option);
|
|
this.treeselectByUser(option);
|
|
this.getAppExitLine();
|
|
this.getAppExitLine();
|
|
|
|
+ this.getAppOutfire();
|
|
getApp().watch(this.getMqttLineData,'lineData');
|
|
getApp().watch(this.getMqttLineData,'lineData');
|
|
|
|
|
|
//判断入口(执行疏散)
|
|
//判断入口(执行疏散)
|
|
@@ -277,8 +279,7 @@ export default {
|
|
onShow(){
|
|
onShow(){
|
|
},
|
|
},
|
|
onUnload(){
|
|
onUnload(){
|
|
- //销毁定时器
|
|
|
|
- clearInterval(this.timer)
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//根据账户信息查询学院楼栋数据
|
|
//根据账户信息查询学院楼栋数据
|
|
@@ -516,6 +517,10 @@ export default {
|
|
let list = [{type:"lab/exit/line"}];
|
|
let list = [{type:"lab/exit/line"}];
|
|
getApp().appMqttOn(1,list);
|
|
getApp().appMqttOn(1,list);
|
|
},
|
|
},
|
|
|
|
+ getAppOutfire(){
|
|
|
|
+ let list = [{type:"lab/fireDevice/Warn/"}];
|
|
|
|
+ getApp().appMqttOn(1,list);
|
|
|
|
+ },
|
|
shadeTypeClick(){
|
|
shadeTypeClick(){
|
|
this.broadcastType = !this.broadcastType
|
|
this.broadcastType = !this.broadcastType
|
|
},
|
|
},
|