将部门管理 负责人选项改为下拉框选择

从当前部门的用户列表选择一个人做绑定 后端接收用户ID
This commit is contained in:
Lionel
2023-08-08 11:43:11 +08:00
parent 3637c16d86
commit 7e54fe7921
2 changed files with 31 additions and 4 deletions

View File

@ -169,6 +169,17 @@ export const updateAuthRole = (data: { userId: string; roleIds: string }) => {
});
};
/**
* 查询当前部门的所有用户信息
* @param deptId
*/
export const listUserByDeptId = (deptId: string | number): AxiosPromise<DeptVO[]> => {
return request({
url: "/system/user/list/dept/" + deptId,
method: "get"
});
};
/**
* 查询部门下拉树结构
*/
@ -193,5 +204,6 @@ export default {
uploadAvatar,
getAuthRole,
updateAuthRole,
deptTreeSelect
deptTreeSelect,
listUserByDeptId
};