From 85c54d88f139096614aea4b06f2166cae27729d7 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期五, 22 八月 2025 10:11:19 +0800 Subject: [PATCH] 用户管理 --- src/views/system/user/utils/hook.tsx | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/views/system/user/utils/hook.tsx b/src/views/system/user/utils/hook.tsx index 30ab3dd..793239f 100644 --- a/src/views/system/user/utils/hook.tsx +++ b/src/views/system/user/utils/hook.tsx @@ -18,13 +18,11 @@ deviceDetection } from "@pureadmin/utils"; import { - getRoleIds, - getDeptList, getUserList, creatCustormerUsers, changeManager, updataCustormerUsers, - getAllRoleList + delCustormerUsers } from "@/api/system"; import { ElForm, @@ -290,8 +288,18 @@ } function handleDelete(row) { - message(`鎮ㄥ垹闄や簡鐢ㄦ埛缂栧彿涓�${row.id}鐨勮繖鏉℃暟鎹甡, { type: "success" }); - onSearch(); + delCustormerUsers({ custormerUserId: row.id }).then(res => { + if (res.code == 200) { + message("鍒犻櫎鎴愬姛锛�", { + type: "success" + }); + onSearch(); + } else { + message(res.message || "鍒犻櫎澶辫触锛�", { + type: "error" + }); + } + }); } function handleSizeChange(val: number) { -- Gitblit v1.9.1