From 4a4c9919742dad65c9fb240df1af442ef0d3c413 Mon Sep 17 00:00:00 2001 From: wisonic Date: Wed, 4 Dec 2024 17:16:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=8C=BA=E5=9F=9F=E5=88=A0=E9=99=A4=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/system/parameter/map/Geometry.vue | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/core/core-frontend/src/views/system/parameter/map/Geometry.vue b/core/core-frontend/src/views/system/parameter/map/Geometry.vue index aefa2dd439..64a3daaf4c 100644 --- a/core/core-frontend/src/views/system/parameter/map/Geometry.vue +++ b/core/core-frontend/src/views/system/parameter/map/Geometry.vue @@ -426,15 +426,12 @@ const editCustomArea = (data?) => { customAreaDialog.value = true } const deleteCustomArea = data => { - ElMessageBox.confirm( - '该操作会导致使用了自定义区域的地图无法正常展示,确定删除?', - `删除[${data.name}]`, - { - type: 'warning', - confirmButtonType: 'danger', - customClass: 'area-delete-dialog' - } - ) + ElMessageBox.confirm('该操作会导致使用了自定义区域的地图无法正常展示,确定删除?', '', { + type: 'warning', + confirmButtonType: 'danger', + customClass: 'area-delete-dialog', + autofocus: false + }) .then(async () => { await deleteCustomGeoArea(data.id) await loadCustomGeoArea() @@ -539,10 +536,11 @@ const saveGeoSubArea = async () => { }) } const deleteCustomSubArea = async data => { - ElMessageBox.confirm('确定删除该自定义区域?', `删除[${data.name}]`, { + ElMessageBox.confirm('确定删除该自定义区域?', '', { type: 'warning', confirmButtonType: 'danger', - customClass: 'area-delete-dialog' + customClass: 'area-delete-dialog', + autofocus: false }) .then(async () => { await deleteCustomGeoSubArea(data.id) @@ -908,6 +906,7 @@ onBeforeMount(() => { } .area-delete-dialog { + padding: 10px; .ed-message-box__header { display: flex; justify-content: space-between;