diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index 21325c3..fc516e9 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -169,6 +169,17 @@ export const updateAuthRole = (data: { userId: string; roleIds: string }) => { }); }; +/** + * 查询当前部门的所有用户信息 + * @param deptId + */ +export const listUserByDeptId = (deptId: string | number): AxiosPromise => { + return request({ + url: "/system/user/list/dept/" + deptId, + method: "get" + }); +}; + /** * 查询部门下拉树结构 */ @@ -193,5 +204,6 @@ export default { uploadAvatar, getAuthRole, updateAuthRole, - deptTreeSelect + deptTreeSelect, + listUserByDeptId }; diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 12f7564..75f2843 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -97,7 +97,9 @@ - + + + @@ -114,7 +116,7 @@ {{ dict.label - }} + }} @@ -133,6 +135,8 @@