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 @@ - + - + - + + + + - +