feat: 组织搜索模糊搜索添加

This commit is contained in:
GAOANG
2025-07-14 15:56:46 +08:00
parent 49901b7c3c
commit 0aee1f54f7
3 changed files with 81 additions and 17 deletions

View File

@ -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: 查询部门树