【新增】试卷任务训练、考试、高考模拟前端

This commit is contained in:
YOHO\20373
2025-04-25 15:53:44 +08:00
parent bcf0cb2a85
commit 0d55446178
81 changed files with 2996 additions and 19167 deletions

View 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 })
}