|
@@ -213,16 +213,18 @@ export default {
|
|
this.showFaceId = false;
|
|
this.showFaceId = false;
|
|
},
|
|
},
|
|
async answerAllQuestions() {
|
|
async answerAllQuestions() {
|
|
- const answers = this.examQuestionList.filter(eq => eq.dirty).map(eq => {
|
|
|
|
- return Object.assign(
|
|
|
|
- {
|
|
|
|
- order: eq.order,
|
|
|
|
- studentAnswer: eq.studentAnswer
|
|
|
|
- },
|
|
|
|
- eq.audioPlayTimes && { audioPlayTimes: eq.audioPlayTimes },
|
|
|
|
- eq.isSign && { isSign: eq.isSign }
|
|
|
|
- );
|
|
|
|
- });
|
|
|
|
|
|
+ const answers = this.examQuestionList
|
|
|
|
+ .filter(eq => eq.dirty && eq.getQuestionContent)
|
|
|
|
+ .map(eq => {
|
|
|
|
+ return Object.assign(
|
|
|
|
+ {
|
|
|
|
+ order: eq.order,
|
|
|
|
+ studentAnswer: eq.studentAnswer
|
|
|
|
+ },
|
|
|
|
+ eq.audioPlayTimes && { audioPlayTimes: eq.audioPlayTimes },
|
|
|
|
+ eq.isSign && { isSign: eq.isSign }
|
|
|
|
+ );
|
|
|
|
+ });
|
|
if (answers.length > 0) {
|
|
if (answers.length > 0) {
|
|
await this.$http.post(
|
|
await this.$http.post(
|
|
"/api/ecs_oe_student/examQuestion/submitQuestionAnswer",
|
|
"/api/ecs_oe_student/examQuestion/submitQuestionAnswer",
|