feat: 优化选人组件和选择组织组件

This commit is contained in:
gaoyunqi
2024-05-09 09:42:56 +08:00
parent a876a6694c
commit 71cc53ec8a
12 changed files with 937 additions and 6 deletions

View File

@ -12,6 +12,7 @@ import {
enum Api {
Page = '/organization/department/page',
Tree = '/organization/department/tree',
Trees = '/organization/department/trees',
EnabledTree = '/organization/department/enabled-tree',
Info = '/organization/department/info',
Department = '/organization/department',
@ -23,7 +24,7 @@ enum Api {
* @description: 查询部门树
*/
export async function getDepartmentTree(
params?: DepartmentTreeParams,
params?: any,
mode: ErrorMessageMode = 'modal',
) {
return defHttp.get<DepartmentTreeModel>(
@ -36,6 +37,23 @@ export async function getDepartmentTree(
},
);
}
/**
* @description: 查询部门树(新)
*/
export async function getDepartmentTrees(
params?: any,
mode: ErrorMessageMode = 'modal',
) {
return defHttp.get<DepartmentTreeModel>(
{
url: Api.Trees,
params,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 查询部门树

View File

@ -49,6 +49,23 @@ export async function getUserPageList(
},
);
}
/**
* @description: 查询用户分页列表(新)
*/
export async function getUserPageListNew(
params: any,
mode: ErrorMessageMode = 'modal',
) {
return defHttp.get<UserPageListResultModel>(
{
url: Api.Page,
params,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 删除用户(批量删除)