feat: 组织搜索模糊搜索添加
This commit is contained in:
@ -13,6 +13,7 @@ enum Api {
|
||||
Page = '/organization/department/page',
|
||||
Tree = '/organization/department/tree',
|
||||
Trees = '/organization/department/trees',
|
||||
queryDeptTrees = '/common/queryDeptTrees',
|
||||
EnabledTree = '/organization/department/enabled-tree',
|
||||
Info = '/organization/department/info',
|
||||
Department = '/organization/department',
|
||||
@ -54,6 +55,24 @@ export async function getDepartmentTrees(
|
||||
},
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @description: 查询部门树(新,名称查询返回树)
|
||||
*/
|
||||
export async function getQueryDeptTrees(
|
||||
params?: any,
|
||||
mode: ErrorMessageMode = 'modal',
|
||||
) {
|
||||
return defHttp.get<DepartmentTreeModel>(
|
||||
{
|
||||
url: Api.queryDeptTrees,
|
||||
params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @description: 查询部门树
|
||||
|
||||
Reference in New Issue
Block a user