From 2536fca503f6fa0bef57d66c90eeaf751ff2bb4b Mon Sep 17 00:00:00 2001 From: gengxin Date: Thu, 13 Mar 2025 16:22:07 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=80=83=E8=AF=95=E5=8F=8A=E6=A0=BC?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/exam.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Course/exam.vue b/src/components/Course/exam.vue index 35549d76..83901b1c 100644 --- a/src/components/Course/exam.vue +++ b/src/components/Course/exam.vue @@ -329,6 +329,7 @@ export default { apiExamPaper.newPaperContent(this.info.id).then(res=>{ if(!res.error&&res.result != ''){ if(this.info.paperType==2){ + console.log("调用开始考试 if paperType == 2") this.examPaper.json=res.result; let qitems=this.convertToItems(this.examPaper.json); this.paper ={items:qitems}; @@ -339,6 +340,7 @@ export default { this.timer=setInterval(this.changeTimer,60000); this.testStart=true; }else{ + console.log("调用开始考试 else paperType != 2") let paper= {items:res.result}; paper.items.forEach(item=>{ if(item.type==101){ From 57a87db0160e2046223e042a1b8eb3d8331e5b1e Mon Sep 17 00:00:00 2001 From: gengxin Date: Thu, 13 Mar 2025 16:32:02 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=80=83=E8=AF=95=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/exam.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Course/exam.vue b/src/components/Course/exam.vue index 83901b1c..6049eb83 100644 --- a/src/components/Course/exam.vue +++ b/src/components/Course/exam.vue @@ -329,6 +329,7 @@ export default { apiExamPaper.newPaperContent(this.info.id).then(res=>{ if(!res.error&&res.result != ''){ if(this.info.paperType==2){ + //TODO1 console.log("调用开始考试 if paperType == 2") this.examPaper.json=res.result; let qitems=this.convertToItems(this.examPaper.json); @@ -337,6 +338,7 @@ export default { this.curItem=qitems[this.curIndex]; this.startTime=new Date();//记录开始时间 this.timerValue=this.info.testDuration; + this.content.status=1; this.timer=setInterval(this.changeTimer,60000); this.testStart=true; }else{ @@ -589,6 +591,8 @@ export default { //TODO 评分更改 最终完成 if(res.result.scope > res.result.passLine){ this.content.status=9;//表已学习完,判断上级的章是否已完成 + }else{ + this.content.status=1; } this.studyItemId=res.result.studyItemId;//第一次保存时是没有的,所以这里要赋值 From 812c09d65c717c12ad4368b75977ac447f7f2393 Mon Sep 17 00:00:00 2001 From: gengxin Date: Thu, 13 Mar 2025 16:38:33 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=80=83=E8=AF=95=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/exam.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Course/exam.vue b/src/components/Course/exam.vue index 6049eb83..6ccff889 100644 --- a/src/components/Course/exam.vue +++ b/src/components/Course/exam.vue @@ -589,7 +589,7 @@ export default { console.log("获取数据结果 考试 res ==>",res) this.records.push(res.result); //TODO 评分更改 最终完成 - if(res.result.scope > res.result.passLine){ + if(res.result.score > res.result.passLine){ this.content.status=9;//表已学习完,判断上级的章是否已完成 }else{ this.content.status=1;