forked from dyf/dyf-vue-ui
修复bug
This commit is contained in:
@ -151,7 +151,7 @@ const renderMarkers = () => {
|
||||
map: mapInstance,
|
||||
icon: new AMap.Icon({
|
||||
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)
|
||||
})
|
||||
});
|
||||
|
@ -356,10 +356,12 @@ const getDeptTree = async () => {
|
||||
const sendTextMessage = () => {
|
||||
// 防重复提交
|
||||
if (!queryParams.value.deviceType) {
|
||||
ElMessage.closeAll();
|
||||
proxy?.$modal.msgWarning('请先选择设备类型');
|
||||
return;
|
||||
}
|
||||
if (ids.value.length == 0) {
|
||||
ElMessage.closeAll();
|
||||
proxy?.$modal.msgWarning('请先选中一条设备');
|
||||
return;
|
||||
}
|
||||
@ -368,6 +370,7 @@ const sendTextMessage = () => {
|
||||
// 发送文本消息确认
|
||||
const submitForm = async () => {
|
||||
if (!form.value.messageToSend) {
|
||||
ElMessage.closeAll();
|
||||
proxy?.$modal.msgWarning('发送消息不能为空');
|
||||
return
|
||||
}
|
||||
@ -423,10 +426,12 @@ const cancel = () => {
|
||||
// 强制报警
|
||||
const forceAlarm = async () => {
|
||||
if (!queryParams.value.deviceType) {
|
||||
ElMessage.closeAll();
|
||||
proxy?.$modal.msgWarning('请先选择设备类型');
|
||||
return;
|
||||
}
|
||||
if (ids.value.length == 0) {
|
||||
ElMessage.closeAll();
|
||||
proxy?.$modal.msgWarning('请先选中一条设备');
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user