From 4f6cdee3d3a9967b6955aacc354bf557430c0643 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期一, 05 八月 2024 17:05:16 +0800 Subject: [PATCH] 批改 --- src/api/onlineEducation/exam.js | 116 +++++++++++++++++++++++++++++++++------------------------- 1 files changed, 66 insertions(+), 50 deletions(-) diff --git a/src/api/onlineEducation/exam.js b/src/api/onlineEducation/exam.js index 3292d01..6ce3a84 100644 --- a/src/api/onlineEducation/exam.js +++ b/src/api/onlineEducation/exam.js @@ -41,53 +41,69 @@ }) } -//批次与学员关系 -//批次下的学员列表(分页) -// export function getBatchStudent(param) { -// return request({ -// url: '/phase-student/list', -// method: 'get', -// params: param -// }) -// } -// // 校验学员是否已存在 -// export function checkStudentUnique(data) { -// return request({ -// url: '/phase-student/checkStudentUnique', -// method: 'post', -// data: data -// }) -// } -// // 批量新增学员 -// export function batchAddStudent(data) { -// return request({ -// url: '/phase-student/batchAdd', -// method: 'post', -// data: data -// }) -// } -// // 批量删除学员 -// export function batchDelStudent(data) { -// return request({ -// url: '/phase-student/batchDelete', -// method: 'delete', -// data: data -// }) -// } -// -// // 批量删除学员 -// export function delBatchStu(userId) { -// return request({ -// url: '/phase-student/' + userId, -// method: 'delete' -// }) -// } -// -// //企业课时变更记录列表(分页) -// export function getCompanyPeriod(param) { -// return request({ -// url: '/company-period/list', -// method: 'get', -// params: param -// }) -// } +//试卷与学员关系 +//试卷下的学员列表(分页) +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 + }) +} -- Gitblit v1.9.2