From 88ab73354f6a2e7e1647c7dde83d8016083e8804 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Fri, 23 Aug 2024 17:45:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=AF=95=E6=8E=A5=E5=8F=A3=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/courseStudy.js | 4 ++-- src/components/Course/exam.vue | 6 +++++- src/views/study/coursenew.vue | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/api/modules/courseStudy.js b/src/api/modules/courseStudy.js index 193420ab..21011f30 100644 --- a/src/api/modules/courseStudy.js +++ b/src/api/modules/courseStudy.js @@ -97,8 +97,8 @@ const studyInfo = function(courseId) { * @param {Object} studyId * @param {Object} contentId */ -const getStudyContentItem = function(studyId,contentId) { - return ajax.post('/xboe/school/study/course/study-course-content',{studyId,contentId}); +const getStudyContentItem = function(studyId,contentId,contentTotal) { + return ajax.post('/xboe/school/study/course/study-course-content',{studyId,contentId,contentTotal}); } /** diff --git a/src/components/Course/exam.vue b/src/components/Course/exam.vue index 2b743b04..6f1b7eb1 100644 --- a/src/components/Course/exam.vue +++ b/src/components/Course/exam.vue @@ -152,6 +152,10 @@ export default { showTest:{ type:Boolean, default:false + }, + contentTotal:{ + type:Number, + default:0 } }, data() { @@ -249,7 +253,7 @@ export default { }, loadStudyItemId(){ //获取studyItemId; - apiStudy.getStudyContentItem(this.studyId,this.info.contentId).then(rs=>{ + apiStudy.getStudyContentItem(this.studyId,this.info.contentId,this.contentTotal).then(rs=>{ if(rs.status==200){ this.examScore=rs.result.score; this.studyItemId=rs.result.id; diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index a82814dd..d1b0c154 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -102,7 +102,7 @@
- +