修复bug
This commit is contained in:
@ -339,18 +339,22 @@ const handleLaserClick = async () => {
|
||||
// 人员信息发送
|
||||
const registerPostInit = () => {
|
||||
if (!deviceDetail.value.personnelInfo.unitName) {
|
||||
ElMessage.closeAll();
|
||||
proxy?.$modal.msgWarning('单位名称不能为空');
|
||||
return
|
||||
}
|
||||
if (!deviceDetail.value.personnelInfo.name) {
|
||||
ElMessage.closeAll();
|
||||
proxy?.$modal.msgWarning('姓名不能为空');
|
||||
return
|
||||
}
|
||||
if (!deviceDetail.value.personnelInfo.position) {
|
||||
ElMessage.closeAll();
|
||||
proxy?.$modal.msgWarning('职位不能为空');
|
||||
return
|
||||
}
|
||||
if (!deviceDetail.value.personnelInfo.code) {
|
||||
ElMessage.closeAll();
|
||||
proxy?.$modal.msgWarning('ID不能为空');
|
||||
return
|
||||
}
|
||||
@ -397,7 +401,7 @@ const saveBtn = () => {
|
||||
// 强制报警
|
||||
const forceAlarm = async () => {
|
||||
try {
|
||||
await proxy?.$modal.confirm('确定要对该设备开启强制报警?','');
|
||||
await proxy?.$modal.confirm('确定要对该设备开启强制报警?', '');
|
||||
forceAlarmLoading.value = true
|
||||
// 2. 准备请求数据
|
||||
const batchId = generateShortId();
|
||||
@ -440,6 +444,7 @@ const forceAlarm = async () => {
|
||||
const sendTextMessage = async () => {
|
||||
// 防重复提交
|
||||
if (!deviceDetail.value.sendMsg) {
|
||||
ElMessage.closeAll();
|
||||
proxy?.$modal.msgWarning('发送信息不能为空');
|
||||
return;
|
||||
}
|
||||
@ -514,7 +519,8 @@ onMounted(() => {
|
||||
.online {
|
||||
color: #00ff00;
|
||||
}
|
||||
.offline{
|
||||
|
||||
.offline {
|
||||
color: rgb(224, 52, 52);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user