|
@@ -356,6 +356,7 @@ export default {
|
|
|
this.$set(this,'deptId',obj.buildId);
|
|
|
this.$set(this,'floorId',obj.floorId);
|
|
|
this.$set(this,'subId',obj.subId);
|
|
|
+ this.$set(this.itemData,'subjectId',obj.subId);
|
|
|
this.$set(this,'pageType',2);
|
|
|
this.getBuildingData();
|
|
|
this.confirmBtn();
|
|
@@ -708,6 +709,9 @@ export default {
|
|
|
},
|
|
|
async GetStartList(rows) {
|
|
|
let self = this;
|
|
|
+ if(!rows[0]){
|
|
|
+ return
|
|
|
+ }
|
|
|
let list = "";
|
|
|
for (let i = 0; i < rows.length; i++) {
|
|
|
list = list + rows[i] + ","
|
|
@@ -952,8 +956,12 @@ export default {
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- this.$set(this,'checkSubName',this.subName.replace('(预案发生) ',""));
|
|
|
- this.$set(this,'address',this.buildingName.replace('(预案发生) ',"") + '' + this.floorName.replace('(预案发生) ',""));
|
|
|
+ // if(this.subName){
|
|
|
+ // this.$set(this,'checkSubName',this.subName.replace('(预案发生) ',""));
|
|
|
+ // }
|
|
|
+ // if(this.buildingName){
|
|
|
+ // this.$set(this,'address',this.buildingName.replace('(预案发生) ',"") + '' + this.floorName.replace('(预案发生) ',""));
|
|
|
+ // }
|
|
|
this.$set(this,'pageType',2);
|
|
|
this.getDeviceList();
|
|
|
this.laboratoryInfo();
|
|
@@ -1036,6 +1044,10 @@ export default {
|
|
|
if(data.data.buildFloorLayoutVoList[o].loginAdmin){
|
|
|
subList.push(data.data.buildFloorLayoutVoList[o])
|
|
|
}
|
|
|
+ if(self.subId == data.data.buildFloorLayoutVoList[o].subId){
|
|
|
+ self.$set(self,'checkSubName',data.data.buildFloorLayoutVoList[o].subName);
|
|
|
+ self.$set(self,'address',data.data.labExitLineVertex.buildName + '' + data.data.labExitLineVertex.floorName);
|
|
|
+ }
|
|
|
}
|
|
|
this.$set(this,'fjListArray', subList);
|
|
|
this.$set(this, 'mapList', JSON.parse(JSON.stringify(list)));
|
|
@@ -1375,6 +1387,15 @@ export default {
|
|
|
this.onMQTT();
|
|
|
}
|
|
|
},
|
|
|
+ videoErrorCallback(e){
|
|
|
+ console.log("播放失败",e);
|
|
|
+ // uni.showToast({
|
|
|
+ // title: '视频播放失败',
|
|
|
+ // icon:"none",
|
|
|
+ // mask:true,
|
|
|
+ // duration: 3000
|
|
|
+ // });
|
|
|
+ },
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
this.offMQTT();
|