zhouwx
3 天以前 dfc1da68ecd0ce95e63ae085ff33e084b8f50a5f
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
import request from '@/utils/request'
 
export function getExam(param) {
    return request({
        url: '/exam-paper/list',
        method: 'get',
        params: param
    })
}
 
export function addExam(data) {
    return request({
        url: '/exam-paper',
        method: 'post',
        data: data
    })
}
 
 
export function editExam(params) {
    return request({
        url: `/exam-paper`,
        method: 'put',
        data: params
    })
}
 
 
export function delExam(userId) {
    return request({
        url: '/exam-paper/' + userId,
        method: 'delete'
    })
}
 
export function checkExamName(data) {
    return request({
        url: '/exam-paper/checkNameUnique',
        method: 'post',
        data: data
    })
}
 
//试卷与学员关系
//试卷下的学员列表(分页)
export function getExamStudent(param) {
    return request({
        url: '/paper-student/list',
        method: 'get',
        params: param
    })
}
// 校验学员是否已存在
export function checkExamStudentUnique(data) {
    return request({
        url: '/paper-student/checkStudentUnique',
        method: 'post',
        data: data
    })
}
 // 批量新增学员
export function examAddStudent(data) {
    return request({
        url: '/paper-student/batchAdd',
        method: 'post',
        data: data
    })
}
 // 批量删除学员
export function examDelStudent(data) {
    return request({
        url: '/paper-student/batchDelete',
        method: 'delete',
        data: data
    })
}
 
 // 删除学员
export function delExamStu(userId) {
    return request({
        url: '/paper-student/' + userId,
        method: 'delete'
    })
}
 
//根据id查询学院试卷信息
export function getPaperStu(param) {
    return request({
        url: '/paper-student/getPaperStudentById',
        method: 'get',
        params: param
    })
}
//根据id试卷信息
export function getPaper(id) {
    return request({
        url: '/exam-paper/'+id,
        method: 'get',
    })
}
 
//提交批改试卷
export function doConfirmExam(data) {
    return request({
        url: '/paper-student/doReview',
        method: 'post',
        data: data
    })
}