瀏覽代碼

听后填空题显示答题

dusenyao 1 年之前
父節點
當前提交
c3e218d642
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      src/views/exercise_questions/preview/ListenFillPreview.vue

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

@@ -98,6 +98,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);