Files
pengchen-exam-vue/src/api/system/person/index.ts

70 lines
1.6 KiB
TypeScript
Raw Normal View History

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