zhouwx
5 天以前 592c1750b148874737cdfba4b22b6229f9805fe6
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
import request from '@/utils/request'
 
export function getBatch(param) {
    return request({
        url: '/course-phase/list',
        method: 'get',
        params: param
    })
}
 
export function addBatch(data) {
    return request({
        url: '/course-phase',
        method: 'post',
        data: data
    })
}
 
 
export function editBatch(params) {
    return request({
        url: `/course-phase`,
        method: 'put',
        data: params
    })
}
 
 
export function delBatch(userId) {
    return request({
        url: '/course-phase/' + userId,
        method: 'delete'
    })
}
 
export function checkBatchName(data) {
    return request({
        url: '/course-phase/checkNameUnique',
        method: 'post',
        data: data
    })
}
 
//批次与学员关系
  //批次下的学员列表(分页)
export function getBatchStudent(param) {
    return request({
        url: '/phase-student/list',
        method: 'get',
        params: param
    })
}
  // 校验学员是否已存在
export function checkStudentUnique(data) {
    return request({
        url: '/phase-student/checkStudentUnique',
        method: 'post',
        data: data
    })
}
// 批量新增学员
export function batchAddStudent(data) {
    return request({
        url: '/phase-student/batchAdd',
        method: 'post',
        data: data
    })
}
// 批量删除学员
export function batchDelStudent(data) {
    return request({
        url: '/phase-student/batchDelete',
        method: 'delete',
        data: data
    })
}
 
// 批量删除学员
export function delBatchStu(userId) {
    return request({
        url: '/phase-student/' + userId,
        method: 'delete'
    })
}
 
//企业课时变更记录列表(分页)
export function getCompanyPeriod(param) {
    return request({
        url: '/company-period/list',
        method: 'get',
        params: param
    })
}