liuxiaolong
2019-05-06 8700cf1dc46c350371d865532c2914595187788e
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import { httpGET, httpPOST } from './common/httpFetch'
 
/**
 * @description 不通类型用户列表接口
 * @param { string } orgId    分库orgId
 * @param { string } start  分页起始
 * @param { string } type  人员类型 "教师"、"学生"、"校外"
 * @param { string } length  每页条数
 */
export const getUserList = body => {
  return httpGET('data/api-u/BbEmployee/list', { body })
}
 
/**
 * @description 用户添加 - 保存接口
 * @param { string } orgId    分库orgId
 * @param { object } Employee  实体类
 */
export const getUserAdd = body => {
  return httpPOST('data/api-u/BbEmployee/add', { body })
}
 
/**
 * @description 教师合同类型查询
 * @param { string } orgId    分库orgId
 * @param { object } type  类型 PACT_TYPE 写死
 */
export const getTearchPact = body => {
  return httpGET('data/api-u/glo/getTeacherPact', { body })
}
 
/**
 * @description 教师合同类型查询
 * @param { string } orgId    分库orgId
 * @param { object } id  用户id
 */
export const userDel = body => {
  return httpGET('data/api-u/BbEmployee/delete', { body })
}
 
/**
 * @description 教师合同类型查询
 * @param { string } file    控件File
 * @param { object } fileSource  默认为空
 */
export const UpHeadImg = body => {
  return httpPOST('data/api-f/files/upHeadImg', { body, type: 'formData' })
}
 
/**
 * @description 用户添加 - 选择部门接口
 * @param { string } orgId    组织部门Id
 * @param { object } type       PEO_TYPE
 */
export const getPeoType = body => {
  return httpGET('data/api-u/glo/getPeoType', { body })
}
 
/**
 * @description 人员批量添加模版下载
 * @param { string } type    stu(学生),tea(教师),team(团体)
 */
export const excelDownload = body => {
  return httpGET('data/api-u/excel/excelDownload', { body })
}
 
/**
 * @description 人员关系列表查询
 * @param { string } orgId  分库orgId
 * @param { string } start  起始页 0(SCHOOL学校总)       必填
 * @param { string } length  长度       必填
 * @param { string } name  名字       必填
 */
export const relationList = body => {
  return httpGET('data/api-u/BbEmployeeRelation/list', { body })
}
 
/**
 * @description 人员关系列表添加
 * @param { string } orgId  分库orgId
 * @param { string } employeeId  被关联人id
 * @param { string } relationoId  关联人Id
 * @param { string } relation  关系说明
 * @param { string } phone  联系电话
 */
export const relationAdd = body => {
  return httpPOST('data/api-u/BbEmployeeRelation/add', { body })
}
 
/**
 * @description 人员关系列表删除
 * @param { string } orgId  分库orgId
 * @param { string } employeeId  被关联人id
 * @param { string } relationoId  关联人Id
 * @param { string } relation  关系说明
 * @param { string } phone  联系电话
 */
export const relationDel = body => {
  return httpGET('data/api-u/BbEmployeeRelation/delete', { body })
}
 
/**
 * @description 人员关系联系人列表 - 展示列表
 * @param { string } orgId  分库orgId
 * @param { string } id  人员id
 */
export const relationById = body => {
  return httpGET('data/api-u/BbEmployeeRelation/findRelationById', { body })
}
 
/**
 * @description 人员关系联系人列表 - 人员选择列表接口
 * @param { string } orgId  分库orgId
 */
export const relationByOrg = body => {
  return httpGET('data/api-u/BbEmployee/findEmpsByOrg', { body })
}