【新增】试卷任务训练、考试、高考模拟前端
This commit is contained in:
70
src/api/system/person/index.ts
Normal file
70
src/api/system/person/index.ts
Normal file
@@ -0,0 +1,70 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
/**
|
||||
* 分页查询试卷人员分配
|
||||
*/
|
||||
|
||||
export const pagePersons = (params) => {
|
||||
return request.get({ url: '/exam/person/getList', params })
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询试卷人员分配
|
||||
*/
|
||||
export async function getPerson(id) {
|
||||
return await request.get({ url: '/exam/person' + id })
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加试卷人员分配
|
||||
*/
|
||||
export async function addPerson(data) {
|
||||
return await request.post({ url: '/exam/person' , data })
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改试卷人员分配
|
||||
*/
|
||||
export async function updatePerson(data) {
|
||||
return await request.put({ url: '/exam/person' , data })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除试卷人员分配
|
||||
*/
|
||||
export async function removePerson(id) {
|
||||
return await request.delete({ url: '/exam/person/' + id })
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 导出试卷人员分配
|
||||
*/
|
||||
export async function exportPersons(params) {
|
||||
// const res = await request({
|
||||
// url: '/exam/person/export',
|
||||
// method: 'POST',
|
||||
// data: toFormData(params),
|
||||
// responseType: 'blob'
|
||||
// });
|
||||
// await checkDownloadRes(res);
|
||||
// download(res.data, `person_${Date.now()}.xlsx`);
|
||||
}
|
||||
export const getSessionStuBySearch = (params) => {
|
||||
return request.get({ url: '/exam/person/getSessionStuBySearch', params })
|
||||
}
|
||||
|
||||
export async function setSessionStu(data) {
|
||||
return await request.post({ url: '/exam/person/setSessionStu' , data })
|
||||
}
|
||||
export async function removeSessionStu(data) {
|
||||
return await request.delete({ url: '/exam/person/removeSessionStu' ,data })
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除试卷人员分配
|
||||
*/
|
||||
export async function removePersons(data) {
|
||||
return await request.delete({ url: '/exam/person/removeTaskStu' ,data })
|
||||
}
|
Reference in New Issue
Block a user