| | |
| | | }, |
| | | startExam () { |
| | | // 获取题目ID列表 |
| | | getSubjectIds({ id: this.query.examinationId }).then(subjectResponse => { |
| | | const subjectData = subjectResponse.data.data.examExaminationSubjects |
| | | getSubjectIds().then(subjectResponse => { |
| | | const subjectData = subjectResponse.data.data |
| | | if (subjectData.length > 0) { |
| | | for (let i = 0; i < subjectData.length; i++) { |
| | | const { examSubjectChoices } = subjectData[i] |
| | | this.subjectIds.push({ |
| | | subjectId: subjectResponse.data.data.id, |
| | | everyID: examSubjectChoices.id, |
| | | type: examSubjectChoices.choicesType, |
| | | subjectId: 1, |
| | | everyID: subjectData[i].id, |
| | | type: subjectData[i].choicesType, |
| | | index: i + 1, |
| | | answered: false, |
| | | answer: examSubjectChoices.answer, |
| | | score: examSubjectChoices.score |
| | | answer: subjectData[i].answer, |
| | | score: subjectData[i].score |
| | | }) |
| | | } |
| | | |
| | |
| | | }) |
| | | }, |
| | | doSubmitExam () { |
| | | |
| | | var obj = { |
| | | examName: this.$route.query.examName, |
| | | securityName: this.userInfo.user_name, |