From 4aa42f5c20d56661a3d7dbaad8a9d0a21bbb5f73 Mon Sep 17 00:00:00 2001 From: bleachtred <bleachtred@163.com> Date: 星期四, 18 四月 2024 11:29:57 +0800 Subject: [PATCH] fix 角色必填*号 --- src/api/system/user/index.ts | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index fc516e9..61a58f6 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -18,6 +18,17 @@ }; /** + * 閫氳繃鐢ㄦ埛ids鏌ヨ鐢ㄦ埛 + * @param userIds + */ +export const optionSelect = (userIds: (number | string)[]): AxiosPromise<UserVO[]> => { + return request({ + url: '/system/user/optionselect?userIds=' + userIds, + method: 'get' + }); +}; + +/** * 鑾峰彇鐢ㄦ埛璇︽儏 * @param userId */ @@ -74,6 +85,9 @@ return request({ url: '/system/user/resetPwd', method: 'put', + headers: { + isEncrypt: true + }, data: data }); }; @@ -130,7 +144,10 @@ return request({ url: '/system/user/profile/updatePwd', method: 'put', - params: data + headers: { + isEncrypt: true + }, + data: data }); }; @@ -173,10 +190,10 @@ * 鏌ヨ褰撳墠閮ㄩ棬鐨勬墍鏈夌敤鎴蜂俊鎭� * @param deptId */ -export const listUserByDeptId = (deptId: string | number): AxiosPromise<DeptVO[]> => { +export const listUserByDeptId = (deptId: string | number): AxiosPromise<UserVO[]> => { return request({ - url: "/system/user/list/dept/" + deptId, - method: "get" + url: '/system/user/list/dept/' + deptId, + method: 'get' }); }; @@ -193,6 +210,7 @@ export default { listUser, getUser, + optionSelect, addUser, updateUser, delUser, -- Gitblit v1.9.3