From c01fea9c5b6dc3bcdaac17a288d9d924a4636341 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Wed, 20 Nov 2024 16:12:51 +0800 Subject: [PATCH] sc --- src/api/system/user/index.ts | 11 ++++++++--- src/views/Basic/User/index.vue | 22 ++++++++++++---------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index a083baa..a3135e2 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -12,7 +12,7 @@ export interface UserVO { avatar: string loginIp: string status: number - inUse: number + hireStatus: number remark: string loginDate: Date createTime: Date @@ -64,12 +64,17 @@ export const resetUserPwd = (id: number, password: string) => { } // 用户状态修改 -export const updateUserStatus = (id: number, status: number, retireDate: string, inUse: number) => { +export const updateUserStatus = ( + id: number, + status: number, + retireDate: string, + hireStatus: number +) => { const data = { id, status, retireDate, - inUse + hireStatus } return request.put({ url: '/admin-api/system/user/update-status', data: data }) } diff --git a/src/views/Basic/User/index.vue b/src/views/Basic/User/index.vue index 607ec08..c340bf6 100644 --- a/src/views/Basic/User/index.vue +++ b/src/views/Basic/User/index.vue @@ -51,10 +51,10 @@ - + - +