提交 76b998ee authored 作者: 王鹏飞's avatar 王鹏飞

feat: 章节考试支持多次考试

上级 fca7a976
......@@ -205,3 +205,27 @@ export function getChapterHomeworkComment(params) {
export function getShare(params) {
return httpRequest.get(`/api/lms/v3/activities/share/${params.semester_id}/${params.course_id}/${params.chapter_id}`)
}
/**
* 获取章节多次考试信息
* @param {string} semesterId 学期ID
* @param {string} courseId 课程ID
* @param {string} chapterId 章节ID
*/
export function getChapterMultipleExams(semesterId, courseId, chapterId, params) {
return httpRequest.get(`/api/lms/v3/education/chapter-examination/${semesterId}/${courseId}/${chapterId}`, params)
}
/**
* 提交章节多次考试信息
* @param {string} semesterId 学期ID
* @param {string} courseId 课程ID
* @param {string} chapterId 章节ID
* @param {string} examId 试题ID
*/
export function submitChapterMultipleExams(semesterId, courseId, chapterId, examId, params) {
return httpRequest.post(
`/api/lms/v3/education/chapter-examination/${semesterId}/${courseId}/${chapterId}/${examId}`,
params
)
}
......@@ -7,6 +7,7 @@
import ChapterPlayer from './player/chapterPlayer.vue' // 章节视频
import ChapterWork from './work/index.vue' // 章节作业
import ChapterExam from './work/chapterExam.vue' // 章节考试
import ChapterMultipleExam from './work/ChapterMultipleExam.vue' // 章节多次考试
import ChapterRead from './read/chapterRead.vue' // 章节资料
import ChapterLive from './live/chapterLive.vue' // 章节直播
import CourseWork from './work/courseWork.vue' // 课程大作业
......@@ -20,6 +21,7 @@ export default {
ChapterWork,
ChapterRead,
ChapterExam,
ChapterMultipleExam,
ChapterLive,
CourseWork,
CourseRead,
......@@ -42,6 +44,7 @@ export default {
5: 'ChapterLive', // CC直播
8: 'ChapterLive', // CC直播
9: 'ChapterExam', // 考试
10: 'ChapterMultipleExam', // 多次考试
99: 'CourseWork', // 课程大作业
100: 'CourseRead', // 课程资料
101: 'CourseExam' // 课程考试
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论