|
@@ -46,22 +46,24 @@
|
|
|
urlList.forEach((item) => {
|
|
|
urlData[item.split("=")[0]] = item.split("=")[1];
|
|
|
});
|
|
|
- console.log('urlData',urlData)
|
|
|
- // type 1.楼栋 2.楼层 3.楼道 4.实验室
|
|
|
+ // type 1.楼栋 2.楼层 3.楼道 4.实验室 5.楼道+实验室
|
|
|
let obj = {
|
|
|
page:'1',
|
|
|
pageSize:'4',
|
|
|
};
|
|
|
if(urlData.type == 1){
|
|
|
- obj.buildId = urlData.id;
|
|
|
+ obj.buildId = urlData.buildId;
|
|
|
}else if(urlData.type == 2){
|
|
|
- obj.floorId = urlData.id;
|
|
|
+ obj.floorId = urlData.floorId;
|
|
|
}else if(urlData.type == 3){
|
|
|
- obj.passageway = urlData.id;
|
|
|
+ obj.passageway = urlData.floorId;
|
|
|
}else if(urlData.type == 4){
|
|
|
- obj.subIds = [urlData.id];
|
|
|
+ obj.subIds = [urlData.subId];
|
|
|
+ }else if(urlData.type == 5){
|
|
|
+ obj.passageway = urlData.floorId;
|
|
|
+ obj.subIds = [urlData.subId];
|
|
|
}
|
|
|
- if(urlData.type&&urlData.id){
|
|
|
+ if(urlData.type){
|
|
|
iotCameraFindByCondition(obj).then(response => {
|
|
|
if (!response.data.records[0]){
|
|
|
this.$set(this,'nullType','视频异常,请联系管理员');
|