Merge pull request #13835 from dataease/pr@dev-v2@refactor_custom_area_delete_style

refactor(图表): 自定义区域删除弹窗样式调整
This commit is contained in:
wisonic-s
2024-12-04 17:17:28 +08:00
committed by GitHub

View File

@@ -426,15 +426,12 @@ const editCustomArea = (data?) => {
customAreaDialog.value = true customAreaDialog.value = true
} }
const deleteCustomArea = data => { const deleteCustomArea = data => {
ElMessageBox.confirm( ElMessageBox.confirm('该操作会导致使用了自定义区域的地图无法正常展示,确定删除?', '', {
'该操作会导致使用了自定义区域的地图无法正常展示,确定删除?', type: 'warning',
`删除[${data.name}]`, confirmButtonType: 'danger',
{ customClass: 'area-delete-dialog',
type: 'warning', autofocus: false
confirmButtonType: 'danger', })
customClass: 'area-delete-dialog'
}
)
.then(async () => { .then(async () => {
await deleteCustomGeoArea(data.id) await deleteCustomGeoArea(data.id)
await loadCustomGeoArea() await loadCustomGeoArea()
@@ -539,10 +536,11 @@ const saveGeoSubArea = async () => {
}) })
} }
const deleteCustomSubArea = async data => { const deleteCustomSubArea = async data => {
ElMessageBox.confirm('确定删除该自定义区域?', `删除[${data.name}]`, { ElMessageBox.confirm('确定删除该自定义区域?', '', {
type: 'warning', type: 'warning',
confirmButtonType: 'danger', confirmButtonType: 'danger',
customClass: 'area-delete-dialog' customClass: 'area-delete-dialog',
autofocus: false
}) })
.then(async () => { .then(async () => {
await deleteCustomGeoSubArea(data.id) await deleteCustomGeoSubArea(data.id)
@@ -908,6 +906,7 @@ onBeforeMount(() => {
} }
.area-delete-dialog { .area-delete-dialog {
padding: 10px;
.ed-message-box__header { .ed-message-box__header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;