|
@@ -2,7 +2,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="emergencyEvacuationBig scrollbar-box">
|
|
<div class="emergencyEvacuationBig scrollbar-box">
|
|
<div class="top-max-title-box">
|
|
<div class="top-max-title-box">
|
|
- <p>{{title}}<span>{{minTitle}}</span></p>
|
|
|
|
|
|
+ <p>{{title}}<span>{{address}}</span></p>
|
|
<!--<p class="inquire-button-one" @click="clickClosure">{{evacuationType?'执行疏散':'结束疏散'}}</p>-->
|
|
<!--<p class="inquire-button-one" @click="clickClosure">{{evacuationType?'执行疏散':'结束疏散'}}</p>-->
|
|
<p></p>
|
|
<p></p>
|
|
<p></p>
|
|
<p></p>
|
|
@@ -34,7 +34,7 @@
|
|
<div class="map-max-box">
|
|
<div class="map-max-box">
|
|
<div class="map-left-box">
|
|
<div class="map-left-box">
|
|
<!--<div class="max-title-box">-->
|
|
<!--<div class="max-title-box">-->
|
|
- <!--<p>{{minTitle}}</p>-->
|
|
|
|
|
|
+ <!--<p>{{address}}</p>-->
|
|
<!--<p>疏散路径:</p>-->
|
|
<!--<p>疏散路径:</p>-->
|
|
<!--<el-select v-model="value" placeholder="请选择" @change="lineEvacuate">-->
|
|
<!--<el-select v-model="value" placeholder="请选择" @change="lineEvacuate">-->
|
|
<!--<el-option-->
|
|
<!--<el-option-->
|
|
@@ -51,7 +51,8 @@
|
|
v-for="(item,index) in fjList" :key="index">
|
|
v-for="(item,index) in fjList" :key="index">
|
|
{{item.room}}
|
|
{{item.room}}
|
|
</div>
|
|
</div>
|
|
- <img class="map-min-img" src="@/assets/ZDimages/icon_sjt.gif" v-show="lightList[0].type">
|
|
|
|
|
|
+ <!--<img class="map-min-img" src="@/assets/ZDimages/icon_sjt.gif" v-show="lightList[0].type">-->
|
|
|
|
+ <img class="map-min-img" src="@/assets/ZDimages/icon_zjt.gif" v-show="lightList[0].type">
|
|
<img class="map-min-img" src="@/assets/ZDimages/icon_yjt.gif" v-show="lightList[1].type">
|
|
<img class="map-min-img" src="@/assets/ZDimages/icon_yjt.gif" v-show="lightList[1].type">
|
|
<img class="map-min-img" src="@/assets/ZDimages/icon_zjt.gif" v-show="lightList[2].type">
|
|
<img class="map-min-img" src="@/assets/ZDimages/icon_zjt.gif" v-show="lightList[2].type">
|
|
<img class="map-min-img" src="@/assets/ZDimages/icon_yjt.gif" v-show="lightList[3].type">
|
|
<img class="map-min-img" src="@/assets/ZDimages/icon_yjt.gif" v-show="lightList[3].type">
|
|
@@ -131,7 +132,7 @@
|
|
type:"",
|
|
type:"",
|
|
value:"0",
|
|
value:"0",
|
|
title:"",
|
|
title:"",
|
|
- minTitle:"环境学院-祈福楼 环境与气象研究所",
|
|
|
|
|
|
+ address:"",
|
|
//疏散方向数据
|
|
//疏散方向数据
|
|
routeList:[
|
|
routeList:[
|
|
{
|
|
{
|
|
@@ -190,6 +191,7 @@
|
|
videoPage:1,
|
|
videoPage:1,
|
|
videoPageSize:4,
|
|
videoPageSize:4,
|
|
videoPageList:[],
|
|
videoPageList:[],
|
|
|
|
+ buildingId:null,
|
|
buttonId:null
|
|
buttonId:null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -203,7 +205,6 @@
|
|
//预案报警进入
|
|
//预案报警进入
|
|
this.buttonType = false;
|
|
this.buttonType = false;
|
|
}
|
|
}
|
|
- this.lablayout();
|
|
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
this.subscriptionMQTT();
|
|
this.subscriptionMQTT();
|
|
@@ -217,7 +218,7 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getCameraByFloor(){
|
|
getCameraByFloor(){
|
|
- getCameraByFloor({floorId:5}).then(response => {
|
|
|
|
|
|
+ getCameraByFloor({floorId:this.buttonId}).then(response => {
|
|
this.startUrl(response.data);
|
|
this.startUrl(response.data);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -271,7 +272,7 @@
|
|
//获取喇叭列表
|
|
//获取喇叭列表
|
|
getDeviceList(){
|
|
getDeviceList(){
|
|
let obj ={
|
|
let obj ={
|
|
- floorId:5,
|
|
|
|
|
|
+ floorId:this.buttonId,
|
|
page:1,
|
|
page:1,
|
|
pageSize:100,
|
|
pageSize:100,
|
|
};
|
|
};
|
|
@@ -327,33 +328,45 @@
|
|
if(data.data){
|
|
if(data.data){
|
|
this.subId = data.data.subId;
|
|
this.subId = data.data.subId;
|
|
this.title = data.data.subName;
|
|
this.title = data.data.subName;
|
|
|
|
+ this.buildingId = data.data.buildId;
|
|
|
|
+ this.buttonId = data.data.floorId;
|
|
|
|
+ this.address = data.data.deptName+'-'+data.data.buildName+'-'+data.data.floorName;
|
|
this.evacuationType = false;
|
|
this.evacuationType = false;
|
|
this.evacuate();
|
|
this.evacuate();
|
|
}else{
|
|
}else{
|
|
if(localStorage.getItem('evacuationSubId')){
|
|
if(localStorage.getItem('evacuationSubId')){
|
|
|
|
+ console.log("1=================>")
|
|
this.subId = localStorage.getItem('evacuationSubId');
|
|
this.subId = localStorage.getItem('evacuationSubId');
|
|
this.title = localStorage.getItem('evacuationTitel');
|
|
this.title = localStorage.getItem('evacuationTitel');
|
|
this.buttonId = localStorage.getItem('evacuationButtonId');
|
|
this.buttonId = localStorage.getItem('evacuationButtonId');
|
|
|
|
+ this.buildingId = localStorage.getItem('evacuationBuildingId');
|
|
|
|
+ this.address = localStorage.getItem('evacuationAddress');
|
|
localStorage.removeItem('evacuationSubId')
|
|
localStorage.removeItem('evacuationSubId')
|
|
localStorage.removeItem('evacuationTitel')
|
|
localStorage.removeItem('evacuationTitel')
|
|
localStorage.removeItem('evacuationButtonId')
|
|
localStorage.removeItem('evacuationButtonId')
|
|
|
|
+ localStorage.removeItem('evacuationBuildingId')
|
|
|
|
+ localStorage.removeItem('evacuationAddress')
|
|
}else{
|
|
}else{
|
|
this.subId = this.$route.query.subId;
|
|
this.subId = this.$route.query.subId;
|
|
this.title = this.$route.query.text;
|
|
this.title = this.$route.query.text;
|
|
this.buttonId = this.$route.query.buttonId;
|
|
this.buttonId = this.$route.query.buttonId;
|
|
|
|
+ this.buildingId = this.$route.query.buildingId;
|
|
|
|
+ this.address = this.$route.query.address;
|
|
}
|
|
}
|
|
this.evacuationType = true;
|
|
this.evacuationType = true;
|
|
this.lineEvacuateTow(this.subId,0);
|
|
this.lineEvacuateTow(this.subId,0);
|
|
}
|
|
}
|
|
|
|
+ this.lablayout();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//获取实验室数据
|
|
//获取实验室数据
|
|
lablayout(){
|
|
lablayout(){
|
|
let self = this;
|
|
let self = this;
|
|
- let id = 137;
|
|
|
|
|
|
+ let id = this.buildingId;
|
|
lablayout(id).then(response => {
|
|
lablayout(id).then(response => {
|
|
|
|
+ console.log("response.dataresponse.dataresponse.dataresponse.data",response.data)
|
|
for(let i=0;i<response.data.length;i++){
|
|
for(let i=0;i<response.data.length;i++){
|
|
- if(response.data[i].id == 5){
|
|
|
|
|
|
+ if(response.data[i].id == this.buttonId){
|
|
self.fjList = response.data[i].list;
|
|
self.fjList = response.data[i].list;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -465,6 +478,8 @@
|
|
query: {
|
|
query: {
|
|
subId: this.subId,
|
|
subId: this.subId,
|
|
text:this.title,
|
|
text:this.title,
|
|
|
|
+ buttonId : this.buttonId,
|
|
|
|
+ buildingId : this.buildingId,
|
|
type:"2",
|
|
type:"2",
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -477,6 +492,8 @@
|
|
query: {
|
|
query: {
|
|
subId: self.subId,
|
|
subId: self.subId,
|
|
text:self.title,
|
|
text:self.title,
|
|
|
|
+ buttonId : self.buttonId,
|
|
|
|
+ buildingId : self.buildingId,
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|