|
@@ -118,6 +118,7 @@
|
|
|
import flvjs from 'flv.js'
|
|
|
import { evacuate, closure, lineEvacuate, IntelligentGuidance,getRedis,getDeviceList,textParseUrlIps,getCameraByFloor,startUrlWC,startUrl } from '@/api/executeThePlan.js'
|
|
|
import mqtt from 'mqtt'
|
|
|
+ import { subjectInfo } from "@/api/laboratory/subject";
|
|
|
export default {
|
|
|
name: 'emergencyEvacuationBig',
|
|
|
props:{
|
|
@@ -219,9 +220,20 @@
|
|
|
},
|
|
|
getCameraByFloor(){
|
|
|
getCameraByFloor({floorId:this.buttonId}).then(response => {
|
|
|
- if(response.data[0]){
|
|
|
- this.startUrl(response.data);
|
|
|
- }
|
|
|
+ let videoList = response.data;
|
|
|
+ subjectInfo(this.subId,0).then(res => {
|
|
|
+ if (res.data.labHardwareVOList){
|
|
|
+ for(let i=0;i<res.data.labHardwareVOList.length;i++){
|
|
|
+ if(res.data.labHardwareVOList[i].hardwareTypeEnum.enumName == 'VIDEO_MONITOR'){
|
|
|
+ videoList.push(res.data.labHardwareVOList[i].hardwareNUM);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ videoList = [...new Set(videoList)]
|
|
|
+ if (videoList[0]){
|
|
|
+ this.startUrl(videoList);
|
|
|
+ }
|
|
|
+ })
|
|
|
});
|
|
|
},
|
|
|
//文字转语音播放
|