广丰卷烟厂数采质量分析系统
zhuguifei
2026-03-02 80ff784bf60637cd348ae665fc907f7b1e527dd8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { request } from '@/service/request';
 
/** 获取岗位信息列表 */
export function fetchGetPostList(params?: Api.System.PostSearchParams) {
  return request<Api.System.PostList>({
    url: '/system/post/list',
    method: 'get',
    params
  });
}
 
/** 新增岗位信息 */
export function fetchCreatePost(data: Api.System.PostOperateParams) {
  return request<boolean>({
    url: '/system/post',
    method: 'post',
    data
  });
}
 
/** 修改岗位信息 */
export function fetchUpdatePost(data: Api.System.PostOperateParams) {
  return request<boolean>({
    url: '/system/post',
    method: 'put',
    data
  });
}
 
/** 批量删除岗位信息 */
export function fetchBatchDeletePost(postIds: CommonType.IdType[]) {
  return request<boolean>({
    url: `/system/post/${postIds.join(',')}`,
    method: 'delete'
  });
}
 
/** 获取岗位选择框列表 */
export function fetchGetPostSelect(deptId?: CommonType.IdType, postIds?: CommonType.IdType[]) {
  return request<Api.System.Post[]>({
    url: '/system/post/optionselect',
    method: 'get',
    params: { postIds, deptId }
  });
}
/** 获取部门选择框列表 */
export function fetchGetPostDeptSelect() {
  return request<Api.Common.CommonTreeRecord>({
    url: '/system/post/deptTree',
    method: 'get'
  });
}