From beb12193b3214805718e1ded5555751eb811e44b Mon Sep 17 00:00:00 2001 From: qsh <> Date: Wed, 20 Nov 2024 16:05:52 +0800 Subject: [PATCH] sc --- src/api/system/user/index.ts | 7 +++-- src/views/Basic/User/index.vue | 54 +++++++++++++++++++++++++++------- 2 files changed, 49 insertions(+), 12 deletions(-) diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index 055b8f5..a083baa 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -12,9 +12,11 @@ export interface UserVO { avatar: string loginIp: string status: number + inUse: number remark: string loginDate: Date createTime: Date + retireDate: string } // 查询用户管理列表 @@ -62,11 +64,12 @@ export const resetUserPwd = (id: number, password: string) => { } // 用户状态修改 -export const updateUserStatus = (id: number, status: number, retireDate: string) => { +export const updateUserStatus = (id: number, status: number, retireDate: string, inUse: number) => { const data = { id, status, - retireDate + retireDate, + inUse } 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 3ff35f9..607ec08 100644 --- a/src/views/Basic/User/index.vue +++ b/src/views/Basic/User/index.vue @@ -45,13 +45,13 @@ - + - + - + + + + - +