From 2f0fa3545b539e8b6f952ea82a1ca2350c64a0e8 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期二, 22 四月 2025 17:28:48 +0800 Subject: [PATCH] fix:修改报警,添加参数 --- src/views/system/dict/index.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 28040ea..08ac732 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -2,6 +2,7 @@ import {sysDictType, sysDictData} from "@/api/system/dict"; import {onMounted} from "vue"; import setPostParams from "@/utils/searchParams.js"; +import {ElMessage} from "element-plus"; const {proxy} = getCurrentInstance(); @@ -145,11 +146,12 @@ /** 删除按钮操作 */ function handleDelete(row) { - proxy.$modal.confirm('确认删除"' + row.dictName + '?') - .then(async () => { - console.log("无删除功能"); - }).catch(() => { - }); + proxy.$modal.confirm('确认删除"' + row.dictName + '?').then(() => { + sysDictType().remove(row.id).then(() => { + ElMessage.success('删除成功') + getList() + }) + }) } /** 关闭弹窗 */ -- Gitblit v1.9.3