From f797c6a4189b064700dc1bd8426ecd230e6e9bb6 Mon Sep 17 00:00:00 2001
From: cgd_mac <349008059@qq.com>
Date: Tue, 22 Feb 2022 17:53:04 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/mycourse/index.js | 32 ++-
src/api/myexam/exam.js | 11 +-
src/components/DbExam/index.vue | 2 +-
src/components/DbLearnCount/index.vue | 40 ++-
src/components/DbQuestionItem/index.vue | 17 +-
src/components/DbReport/index.vue | 32 ++-
src/views/mycollection/index.vue | 4 +-
.../mycourse/courseLearn/CourseCatalogue.vue | 61 +++-
src/views/mycourse/courseLearn/ExamDialog.vue | 78 ++++-
.../mycourse/courseLearn/OperationModule.vue | 45 ++-
.../courseLearn/StatisticalLearning.vue | 12 +-
src/views/mycourse/courseLearn/index.vue | 160 ++++++++---
.../mycourseList/CourseRecommendation.vue | 52 ++--
.../mycourse/mycourseList/MyCourseList.vue | 2 +-
.../mycourse/mycourseList/TrainingPlan.vue | 61 ++--
src/views/mycourse/mycourseList/index.vue | 6 +-
src/views/myexam/index.vue | 41 ++-
src/views/myexamCount/index.vue | 2 +-
src/views/myexamDetail/index.vue | 268 ++++++++++--------
src/views/myreport/index.vue | 78 +++--
20 files changed, 695 insertions(+), 309 deletions(-)
diff --git a/src/api/mycourse/index.js b/src/api/mycourse/index.js
index a7b1bd2..1a013ba 100644
--- a/src/api/mycourse/index.js
+++ b/src/api/mycourse/index.js
@@ -9,9 +9,12 @@ const mycourseApi = {
recommendDetail: 'sys/recommend/detail', // 系统课程推荐详情
getCourseDetail: 'myCourse/getCourseDetail', // 我的课程详情
getCourseCatalogue: 'myCourse/getCourseCatalogue', // 获取课程目录
+ reqCourseExam: 'testInClass/add', // 课中检测
simulateTestList: 'simulateTest/list', // 模拟测试列表
simulateTestDetail: 'simulateTest/getQuestions', // 获取模拟测试详情
- operationList: 'classwork/getDetail', // 作业列表
+ operationList: 'classwork/list', // 作业列表
+ reqOperationDetail: 'classwork/get', // 作业详情
+ reqOperationSubmit: 'classwork/submit', // 作业提交
getMyCourseList: 'studyStatistics/getMyCourseList' // 课程学习统计
}
@@ -23,10 +26,26 @@ export function reqMycourseCount (params) {
})
}
+export function reqOperationDetail (params) {
+ return request({
+ url: mycourseApi.reqOperationDetail,
+ method: 'get',
+ params: params
+ })
+}
+
+export function reqOperationSubmit (params) {
+ return request({
+ url: mycourseApi.reqOperationSubmit,
+ method: 'post',
+ data: params
+ })
+}
+
export function reqOperationList (params) {
return request({
url: mycourseApi.operationList,
- method: 'post',
+ method: 'get',
params: params
})
}
@@ -111,3 +130,12 @@ export function reqCourseCatalogue (params) {
params: params
})
}
+
+export function reqCourseExam (params, data) {
+ return request({
+ url: mycourseApi.reqCourseExam,
+ method: 'post',
+ params: params,
+ data: data
+ })
+}
diff --git a/src/api/myexam/exam.js b/src/api/myexam/exam.js
index 9ef15ec..0e23d0f 100644
--- a/src/api/myexam/exam.js
+++ b/src/api/myexam/exam.js
@@ -6,7 +6,8 @@ const examApi = {
exam: 'exam/exam', // 我的考试进入考试
viewReport: 'exam/viewReport', // 查看报告
viewResolution: 'exam/viewResolution', // 查看解析
- submit: 'exam/submit' // 交卷
+ submit: 'exam/submit', // 交卷
+ subscribe: '/exam/subscribe'
}
export function reqExamViewResolution (data) {
@@ -17,6 +18,14 @@ export function reqExamViewResolution (data) {
})
}
+export function reqExamSubscribe (data) {
+ return request({
+ url: examApi.subscribe,
+ method: 'get',
+ params: data
+ })
+}
+
export function reqExamSubmit (data) {
return request({
url: examApi.submit,
diff --git a/src/components/DbExam/index.vue b/src/components/DbExam/index.vue
index fb128fe..493bfb5 100644
--- a/src/components/DbExam/index.vue
+++ b/src/components/DbExam/index.vue
@@ -8,7 +8,7 @@
- 注意:每段课程学习完成后都会随机出现1道小题,答对题目,方可继续下一部分学习,您有2次机会。否则之前上一小段学习时间不计算学时,需要重新学习 + 注意:每段课程学习完成后都会随机出现1道小题,答对题目,方可继续下一部分学习,您有{{ + chance + }}次机会。否则之前上一小段学习时间不计算学时,需要重新学习