feat: 优化选人组件和选择组织组件
This commit is contained in:
@ -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: 查询部门树
|
||||
|
||||
@ -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: 删除用户(批量删除)
|
||||
|
||||
Reference in New Issue
Block a user