| | |
| | | <div class="title-container text-3xl font-semibold text-white mr-8"> |
| | | 测试测试测试 |
| | | </div> |
| | | |
| | | <AnswerTime></AnswerTime> |
| | | |
| | | <div class="return-container grow flex justify-end"> |
| | | <el-button type="danger" size="large" circle @click="closeClick"> |
| | | <template #icon> |
| | | <el-icon :size="20"> |
| | | <Close /> |
| | | </el-icon> |
| | | </template> |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="exam-main grow flex justify-between"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <!-- 提示弹窗 --> |
| | | <el-dialog v-model="dialogVisible" title="注意" width="500"> |
| | | <div class="dialog-container"> |
| | | <p>请确认是否退出当前考试</p> |
| | | <p>当前考试试卷会自动提交,后续无法继续作答</p> |
| | | </div> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | | <el-button @click="dialogVisible = false">取消</el-button> |
| | | <el-button type="primary" @click="confirmCancel"> |
| | | 确定 |
| | | </el-button> |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import {ref} from 'vue'; |
| | | import { ref } from 'vue'; |
| | | import { Close } 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 typeComponent = { |
| | | 1: AnswerSingle, |
| | | 2: AnswerMultiple, |
| | | } |
| | | }; |
| | | |
| | | const currentType = ref(1); |
| | | const questionIndex = ref(0); |
| | | |
| | | const dialogVisible = ref(false); |
| | | |
| | | const prevQuestion = () => { |
| | | questionIndex.value--; |
| | | } |
| | | }; |
| | | |
| | | const nextQuestion = () => { |
| | | questionIndex.value++; |
| | | }; |
| | | |
| | | const closeClick = () => { |
| | | dialogVisible.value = true; |
| | | }; |
| | | |
| | | const confirmCancel = () => { |
| | | dialogVisible.value = false; |
| | | } |
| | | </script> |
| | | |
| | |
| | | width: 160px; |
| | | height: 40px; |
| | | } |
| | | |
| | | .tool-button { |
| | | margin: 0 20px; |
| | | } |