人员列表及巡检记录人员离线或经纬度异常时,进行拦截并提示

main
zhufu 2026-01-30 15:41:39 +08:00
parent 3cbf64a492
commit 734cc23f0d
2 changed files with 13 additions and 0 deletions

View File

@ -68,6 +68,11 @@ const goflyaddress=(e)=>{
})
entityArr.value = []
}
if(e.state == '离线'){
return message.warning('当前人员离线')
}else if(e.lng == null || e.lat == null || e.lng == 0 || e.lat == 0){
return message.warning('人员位置异常')
}
handlerAddEntity(e)
}
// Entity

View File

@ -74,6 +74,7 @@
import { useMessage } from '@/hooks/web/useMessage';
import { getPatrolPointByTimeSubsection } from '@/api/firegrid/patrol';
import { getDeptList } from '@/api/demo/system';
import { message } from 'ant-design-vue';
const { createMessage } = useMessage();
defineOptions({ name: 'DeptModal' });
@ -116,6 +117,8 @@
}
},
afterFetch: (data) => {
onlineInfo.online = data.online;
onlineInfo.offline = data.offline;
return data.userinfo
},
actionColumn: {
@ -127,6 +130,11 @@
},
});
const toPosition = (row) => {
if(row.state == '离线'){
return message.warning('当前人员离线')
}else if(row.lng == null || row.lat == null || row.lng == 0 || row.lat == 0){
return message.warning('人员位置异常')
}
const lnglat = [row.lng, row.lat];
EventBus.emit('inspectionMoldeMap', lnglat);
};