修复bug
This commit is contained in:
@ -339,18 +339,22 @@ const handleLaserClick = async () => {
|
|||||||
// 人员信息发送
|
// 人员信息发送
|
||||||
const registerPostInit = () => {
|
const registerPostInit = () => {
|
||||||
if (!deviceDetail.value.personnelInfo.unitName) {
|
if (!deviceDetail.value.personnelInfo.unitName) {
|
||||||
|
ElMessage.closeAll();
|
||||||
proxy?.$modal.msgWarning('单位名称不能为空');
|
proxy?.$modal.msgWarning('单位名称不能为空');
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!deviceDetail.value.personnelInfo.name) {
|
if (!deviceDetail.value.personnelInfo.name) {
|
||||||
|
ElMessage.closeAll();
|
||||||
proxy?.$modal.msgWarning('姓名不能为空');
|
proxy?.$modal.msgWarning('姓名不能为空');
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!deviceDetail.value.personnelInfo.position) {
|
if (!deviceDetail.value.personnelInfo.position) {
|
||||||
|
ElMessage.closeAll();
|
||||||
proxy?.$modal.msgWarning('职位不能为空');
|
proxy?.$modal.msgWarning('职位不能为空');
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!deviceDetail.value.personnelInfo.code) {
|
if (!deviceDetail.value.personnelInfo.code) {
|
||||||
|
ElMessage.closeAll();
|
||||||
proxy?.$modal.msgWarning('ID不能为空');
|
proxy?.$modal.msgWarning('ID不能为空');
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -440,6 +444,7 @@ const forceAlarm = async () => {
|
|||||||
const sendTextMessage = async () => {
|
const sendTextMessage = async () => {
|
||||||
// 防重复提交
|
// 防重复提交
|
||||||
if (!deviceDetail.value.sendMsg) {
|
if (!deviceDetail.value.sendMsg) {
|
||||||
|
ElMessage.closeAll();
|
||||||
proxy?.$modal.msgWarning('发送信息不能为空');
|
proxy?.$modal.msgWarning('发送信息不能为空');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -514,6 +519,7 @@ onMounted(() => {
|
|||||||
.online {
|
.online {
|
||||||
color: #00ff00;
|
color: #00ff00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.offline {
|
.offline {
|
||||||
color: rgb(224, 52, 52);
|
color: rgb(224, 52, 52);
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ const renderMarkers = () => {
|
|||||||
map: mapInstance,
|
map: mapInstance,
|
||||||
icon: new AMap.Icon({
|
icon: new AMap.Icon({
|
||||||
size: new AMap.Size(32, 32), // Marker显示尺寸
|
size: new AMap.Size(32, 32), // Marker显示尺寸
|
||||||
image: 'https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png',
|
image: '/src/assets/images/position_ico.png',
|
||||||
imageSize: new AMap.Size(32, 32)
|
imageSize: new AMap.Size(32, 32)
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
@ -356,10 +356,12 @@ const getDeptTree = async () => {
|
|||||||
const sendTextMessage = () => {
|
const sendTextMessage = () => {
|
||||||
// 防重复提交
|
// 防重复提交
|
||||||
if (!queryParams.value.deviceType) {
|
if (!queryParams.value.deviceType) {
|
||||||
|
ElMessage.closeAll();
|
||||||
proxy?.$modal.msgWarning('请先选择设备类型');
|
proxy?.$modal.msgWarning('请先选择设备类型');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ids.value.length == 0) {
|
if (ids.value.length == 0) {
|
||||||
|
ElMessage.closeAll();
|
||||||
proxy?.$modal.msgWarning('请先选中一条设备');
|
proxy?.$modal.msgWarning('请先选中一条设备');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -368,6 +370,7 @@ const sendTextMessage = () => {
|
|||||||
// 发送文本消息确认
|
// 发送文本消息确认
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
if (!form.value.messageToSend) {
|
if (!form.value.messageToSend) {
|
||||||
|
ElMessage.closeAll();
|
||||||
proxy?.$modal.msgWarning('发送消息不能为空');
|
proxy?.$modal.msgWarning('发送消息不能为空');
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -423,10 +426,12 @@ const cancel = () => {
|
|||||||
// 强制报警
|
// 强制报警
|
||||||
const forceAlarm = async () => {
|
const forceAlarm = async () => {
|
||||||
if (!queryParams.value.deviceType) {
|
if (!queryParams.value.deviceType) {
|
||||||
|
ElMessage.closeAll();
|
||||||
proxy?.$modal.msgWarning('请先选择设备类型');
|
proxy?.$modal.msgWarning('请先选择设备类型');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ids.value.length == 0) {
|
if (ids.value.length == 0) {
|
||||||
|
ElMessage.closeAll();
|
||||||
proxy?.$modal.msgWarning('请先选中一条设备');
|
proxy?.$modal.msgWarning('请先选中一条设备');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user