diff --git a/src/api/system/dept/types.ts b/src/api/system/dept/types.ts index 867dbde..4849631 100644 --- a/src/api/system/dept/types.ts +++ b/src/api/system/dept/types.ts @@ -17,7 +17,7 @@ export interface DeptVO extends BaseEntity { deptId: number | string; deptName: string; orderNum: number; - leader: string; + leaderId: string; phone: string; email: string; status: string; @@ -36,7 +36,7 @@ export interface DeptForm { deptId?: number | string; deptName?: string; orderNum?: number; - leader?: string; + leaderId?: string; phone?: string; email?: string; status?: string; diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index cb448f5..4ebd47f 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -175,17 +175,6 @@ 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' - }); -}; - /** * 查询部门下拉树结构 */ @@ -210,6 +199,5 @@ export default { uploadAvatar, getAuthRole, updateAuthRole, - deptTreeSelect, - listUserByDeptId + deptTreeSelect }; diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index ab7ecbb..6c9cefd 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -96,9 +96,21 @@ - - - + + + @@ -135,14 +147,13 @@