import Vue from 'vue';
|
const http = Vue.prototype.$u
|
|
// 查询试卷信息列表
|
export function listPaper(data) {
|
return http.get('/base/paper/list', data, { custom: { loading: true }});
|
}
|
// 查询试卷信息详细
|
export function getPaper(id) {
|
return http.get('/base/paper/'+id, { custom: { loading: true }});
|
}
|
// 考试记录列表
|
export function userlist(data) {
|
return http.get('/base/paper/user/list', data, { custom: { loading: true }});
|
}
|
// 考试
|
export function addUserPaper(data) {
|
return http.post('/base/paper/user/add', data, { custom: { loading: true }});
|
}
|
// 考试详情
|
export function getUserPaper(id) {
|
return http.get('/base/paper/user/'+id, { custom: { loading: true }});
|
}
|