socializationLaborUtil.js
2.1 KB
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
53
54
55
56
57
58
59
60
61
62
import * as fetch from './fetch'
import * as constants from '../redux/constants/Constants'
//社会化用工 用工池 start
//获取用工池 列表
export const getLaborAllList = (params, options = {}) => {
//获取全部的 用工池列表
const url = '/api/recruit/myresumes' + `${params}`
return fetch.get(url, options)
}
//用工池 列表 (导入)
// export const importLaborList = (data, params, options = {}) => { //导入用工池成员
// const url = '/api/recruit/import/org-resumes'
// return fetch.post(url, data, options)
// }
export const importLaborList = (data, params, options = {}) => { //导入用工池成员
// const url = '/api/recruit/org-resume/op/import'
const url = '/api/socialwork/employees/op/import'
return fetch.post(url, data, options)
}
//社会化用工 用工池 end
// 岗位管理 获取岗位 列表 搜索 岗位名称
export const getPost = (params, options = {}) => {
const url = '/api/socialwork/positions' + `${params}`
return fetch.get(url, options)
}
// 岗位管理 添加岗位
export const postPost = (data, params, options = {}) => {
const url = '/api/socialwork/position'
return fetch.post(url, data, options)
}
// 岗位管理 获取上级岗位
export const getPostALl = (params, options = {}) => {
const url = '/api/socialwork/positions?parent=true'
return fetch.get(url, options)
}
// 岗位类型
export const getPosCategory = (options = {}) => {
const url = `/api/recruit/pos-category/socialwork`
return fetch.get(url, options)
}
// 岗位类型列表
export const getOrgannizationJobs = (params, options = {}) => {
const url = '/api/personnelmgm/ent/positions?all=true'
return fetch.get(url, options)
}
// 编辑岗位
export const editPosition = ( options = {}) => {
let url = '/api/socialwork/position/'+options.id;
return fetch.put(url, options)
}
// 删除岗位
export const delPostPost = (id, options = {}) => {
let url = '/api/socialwork/position/'+id;
return fetch.del(url, options)
}