web
8 天以前 2f0fa3545b539e8b6f952ea82a1ca2350c64a0e8
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()
        })
    })
}
/** 关闭弹窗 */