|
@@ -188,21 +188,25 @@ export default {
|
|
|
});
|
|
|
let showPlace = ref(false);
|
|
|
const getPlace = ({ selectedOptions }) => {
|
|
|
- showPlace.value = false;
|
|
|
- securityFacilitiesErr.siteName = selectedOptions[0];
|
|
|
- //场所选择完成后刷新
|
|
|
- getVideoAudioList();
|
|
|
- getFireStationList();
|
|
|
+ if(selectedOptions[0]!=undefined&&selectedOptions[0]!=null){
|
|
|
+ showPlace.value = false;
|
|
|
+ securityFacilitiesErr.siteName = selectedOptions[0];
|
|
|
+ //场所选择完成后刷新
|
|
|
+ getVideoAudioList();
|
|
|
+ getFireStationList();
|
|
|
+ }
|
|
|
};
|
|
|
//选择设施类型
|
|
|
let showLx = ref(false);
|
|
|
const facilityTypes = [{text:"监控、音频",value:"0"},{text:"消防设备",value:"1"}];
|
|
|
- const getfacilityType= ({ selectedOptions }) => {
|
|
|
- securityFacilitiesErr.facilityType = selectedOptions[0].value;
|
|
|
- securityFacilitiesErr.facilityTypename = selectedOptions[0].text;
|
|
|
- getVideoAudioList();
|
|
|
- getFireStationList();
|
|
|
- showLx.value = false;
|
|
|
+ const getfacilityType= ({ selectedOptions }) => {
|
|
|
+ if(selectedOptions[0]!=undefined&&selectedOptions[0]!=null){
|
|
|
+ securityFacilitiesErr.facilityType = selectedOptions[0].value;
|
|
|
+ securityFacilitiesErr.facilityTypename = selectedOptions[0].text;
|
|
|
+ getVideoAudioList();
|
|
|
+ getFireStationList();
|
|
|
+ showLx.value = false;
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
//选择视频音频点位
|
|
@@ -223,10 +227,12 @@ export default {
|
|
|
}
|
|
|
|
|
|
};
|
|
|
- const setVideoAudios= ({ selectedOptions }) => {
|
|
|
- securityFacilitiesErr.videoAudioPoint = selectedOptions[0];
|
|
|
- securityFacilitiesErr.position=selectedOptions[0].position;
|
|
|
- showVideoAudio.value = false;
|
|
|
+ const setVideoAudios= ({ selectedOptions }) => {
|
|
|
+ if(selectedOptions[0]!=undefined&&selectedOptions[0]!=null){
|
|
|
+ securityFacilitiesErr.videoAudioPoint = selectedOptions[0];
|
|
|
+ securityFacilitiesErr.position=selectedOptions[0].position;
|
|
|
+ showVideoAudio.value = false;
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
|
|
@@ -248,10 +254,12 @@ export default {
|
|
|
}
|
|
|
|
|
|
};
|
|
|
- const setFireStations= ({ selectedOptions }) => {
|
|
|
- securityFacilitiesErr.siteFireProtection = selectedOptions[0];
|
|
|
- securityFacilitiesErr.position=selectedOptions[0].position;
|
|
|
- showFireStation.value = false;
|
|
|
+ const setFireStations= ({ selectedOptions }) => {
|
|
|
+ if(selectedOptions[0]!=undefined&&selectedOptions[0]!=null){
|
|
|
+ securityFacilitiesErr.siteFireProtection = selectedOptions[0];
|
|
|
+ securityFacilitiesErr.position=selectedOptions[0].position;
|
|
|
+ showFireStation.value = false;
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
// 提交数据
|