将部门管理 负责人选项改为下拉框选择
从当前部门的用户列表选择一个人做绑定 后端接收用户ID
This commit is contained in:
@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user