dusenyao 11 ماه پیش
والد
کامیت
f09741916d
1فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 7 2
      src/views/home/recovery/ExerciseAnswerUserList.vue

+ 7 - 2
src/views/home/recovery/ExerciseAnswerUserList.vue

@@ -200,6 +200,7 @@ export default {
       this.answer_error_person_list = answer_error_person_list;
       if (answer_right_person_list.length > 0 || answer_error_person_list.length > 0) {
         const userList = answer_right_person_list.length > 0 ? answer_right_person_list : answer_error_person_list;
+        console.log(userList[0]);
         this.selectUser(userList[0].user_id, userList[0].answer_record_id);
       }
     });
@@ -220,7 +221,9 @@ export default {
     },
     // 得到答题记录题目信息
     getQuestionInfo_AnswerRecord() {
-      this.$refs.exercise?.[0].showAnswer(false, false, { answer_list: [] }, true);
+      if (this.questionList[this.curQuestionIndex].type !== 'read') {
+        this.$refs.exercise?.[0].showAnswer(false, false, { answer_list: [] }, true);
+      }
       GetQuestionInfo_AnswerRecord({
         answer_record_id: this.curAnswerRecordId,
         question_id: this.question_id,
@@ -241,7 +244,9 @@ export default {
         // 题目内容
         if (question.content) {
           this.currentQuestion = JSON.parse(question.content);
-          this.curQuestionPage = this.previewComponents[this.questionList[this.curQuestionIndex].type];
+          if (!this.curQuestionPage) {
+            this.curQuestionPage = this.previewComponents[this.questionList[this.curQuestionIndex].type];
+          }
         }
         this.is_objective = is_objective === 'true';
         this.user_answer.answer_status = answer_status;