| | |
| | | </el-dialog> |
| | | |
| | | <!-- 考试时间弹窗 --> |
| | | <el-dialog |
| | | v-model="timeDialog" |
| | | align-center width="500" |
| | | :close-on-click-modal="false" |
| | | :close-on-press-escape="false" |
| | | :show-close="false" |
| | | > |
| | | <el-dialog v-model="timeDialog" align-center width="500" :close-on-click-modal="false" |
| | | :close-on-press-escape="false" :show-close="false"> |
| | | <div class="dialog-container flex flex-col items-center"> |
| | | <div class="icon-container"> |
| | | <el-icon :size="50" color="#3680fa"><Timer /></el-icon> |
| | | <el-icon :size="50" color="#3680fa"> |
| | | <Timer /> |
| | | </el-icon> |
| | | </div> |
| | | <div class="dialog-info"> |
| | | 考试结束,系统自动收卷中....... |
| | |
| | | <script setup> |
| | | import { ref, watchEffect } from 'vue'; |
| | | import { storeToRefs } from 'pinia'; |
| | | import { Close,Timer } from '@element-plus/icons-vue'; |
| | | import { Close, Timer } from '@element-plus/icons-vue'; |
| | | import AnswerTag from './components/answer-tag/index.vue'; |
| | | import AnswerProgress from './components/answer-progress/index.vue'; |
| | | import AnswerSheet from './components/answer-sheet/index.vue'; |
| | |
| | | const resetAllDialog = () => { |
| | | quitDialog.value = false; |
| | | submitDialog.value = false; |
| | | } |
| | | }; |
| | | |
| | | // 时间结束 |
| | | const timeOut = () => { |
| | |
| | | const temp = { |
| | | ...examInfo.value, |
| | | titleList: examDetail.value |
| | | } |
| | | }; |
| | | submitExam(temp).then(res => { |
| | | returnBack(); |
| | | }).catch(() => { |
| | | returnBack(); |
| | | }); |
| | | }; |
| | | |
| | | const returnBack = () => { |
| | | setTimeout(() => { |
| | | router.back(); |
| | | }) |
| | | // setTimeout(() => { |
| | | // router.back(); |
| | | // },2000); |
| | | }, 2000); |
| | | }; |
| | | |
| | | watchEffect(() => { |