Explorar el Código

填空题显示答题

dusenyao hace 1 año
padre
commit
d334ae7800
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      src/views/exercise_questions/preview/FillPreview.vue

+ 12 - 0
src/views/exercise_questions/preview/FillPreview.vue

@@ -97,6 +97,18 @@ export default {
       deep: true,
       immediate: true,
     },
+    isJudgingRightWrong(val) {
+      if (!val) return;
+      this.answer.answer_list.forEach(({ mark, value }) => {
+        this.modelEssay.forEach((item) => {
+          item.forEach((li) => {
+            if (li.mark === mark) {
+              li.content = value;
+            }
+          });
+        });
+      });
+    },
   },
   created() {
     document.addEventListener('click', this.handleBlur);