Commit 2f1e1b79 authored by 张伯涛's avatar 张伯涛

传参修改

parent 360d3979
......@@ -98,7 +98,7 @@ export default {
examInit() {
// 根据课程id查询试卷
console.log('this.businessId', this.businessId)
findByLessonIdExam({ userId: this.userId, lessonId: this.lessonId, businessId: this.businessId }).then(res => {
findByLessonIdExam({status: this.answer, userId: this.userId, lessonId: this.lessonId, businessId: this.businessId }).then(res => {
console.log('examFindByLessonId', res)
this.qsList = res.data.qsList
this.totalScore = res.data.totalScore
......@@ -126,7 +126,7 @@ export default {
recordId: this.qsList[i].recordId,
answer: this.qsList[i].uanswer
}
if (this.answer === '1') {
if (this.answer === '1') { // 1: 调用answerByOneClick接口,2:不调用
answerByOneClick(temp)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment