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