!107 add 新增岗位编码与部门编码 并将岗位放到部门下

* add 新增获取岗位选择框列表
* update 岗位查询树表和单表相互undefined
* update 岗位查询增加单部门查询
* update 优化类别编码与后台一致性
* add 新增岗位部门树以及类别编码
* add 部门增加类别代码
This commit is contained in:
AprilWind
2024-04-24 14:30:52 +00:00
committed by 疯狂的狮子Li
parent 175c4a48ce
commit 7ed5f33e7b
5 changed files with 232 additions and 97 deletions

View File

@@ -19,6 +19,15 @@ export function getPost(postId: string | number): AxiosPromise<PostVO> {
});
}
// 获取岗位选择框列表
export function optionselect(query: PostQuery): AxiosPromise<PostVO[]> {
return request({
url: '/system/post/optionselect',
method: 'get',
params: query
});
}
// 新增岗位
export function addPost(data: PostForm) {
return request({