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
| import request from '@/utils/request'
| import { getToken } from '@/utils/auth'
|
| export function getSafetyPersonQualification(params,data) {
| return request({
| headers: {
| 'Authorization': getToken()
| },
| url: process.env.BASE_API + '/enterprise/enterprisePerson?id=' + data + '&category=' + "SECURITY",
| method: 'get',
| params: params || {},
| })
| }
|
| export function getSpecialPersonQualification(params,data) {
| return request({
| headers: {
| 'Authorization': getToken()
| },
| url: process.env.BASE_API + '/enterprise/enterprisePerson?id=' + data + '&category=' + "SPECIAL",
| method: 'get',
| params: params || {},
| })
| }
|
| export function addSafetyPersonQualification(data){
| return request({
| headers:{
| 'Authorization':getToken()
| },
| url:process.env.BASE_API+ '/enterprise/addenterprisePerson',
| method:'post',
| data
| })
| }
|
| export function updateSafetyPersonQualification(data){
| return request({
| headers:{
| 'Authorization':getToken()
| },
| url:process.env.BASE_API+ '/enterprise/putenterprisePerson',
| method: 'post',
| data
| })
| }
|
|