ZhangXianQiang
2024-06-20 4d28d7dfbe09f4d5d59aaff007afe472192a76ab
src/views/exam/index.vue
@@ -125,7 +125,7 @@
          <el-icon :size="50" color="#3680fa"><Timer /></el-icon>
        </div>
        <div class="dialog-info">
          考试时间到,系统自动收卷中.......
          考试结束,系统自动收卷中.......
        </div>
      </div>
    </el-dialog>
@@ -162,6 +162,7 @@
const quitDialog = ref(false);
const submitDialog = ref(false);
const timeDialog = ref(false);
const prevQuestion = () => {
  currentIndex.value--;
@@ -204,20 +205,10 @@
        currentIndex.value = 0;
      }
    }
    // findQuestion(currentType.value, currentIndex.value);
  }
};
const findQuestion = (type, index) => {
  const typeQuestion = examDetail.value.find(typeItem => typeItem.questionType === type);
  if (typeQuestion) {
    const question = typeQuestion.questionList[index];
    if (question) {
      examStore.setActiveQuestion(question);
    }
  }
};
// 退出考试
const closeClick = () => {
@@ -225,8 +216,7 @@
};
const confirmQuit = () => {
  quitDialog.value = false;
  router.back();
  timeOut();
};
// 交卷
@@ -235,8 +225,7 @@
};
const confirmSubmit = () => {
  submitDialog.value = false;
  router.back();
  timeOut();
};
const resetAllDialog = () => {