| | |
| | | "electron": "^30.0.9", |
| | | "electron-builder": "^24.13.3", |
| | | "electron-devtools-installer": "^3.2.0", |
| | | "mockjs": "^1.1.0", |
| | | "postcss": "^8.4.38", |
| | | "sass": "^1.77.4", |
| | | "tailwindcss": "^3.4.3", |
| | |
| | | "ufo": "^1.5.3" |
| | | } |
| | | }, |
| | | "node_modules/mockjs": { |
| | | "version": "1.1.0", |
| | | "resolved": "https://registry.npmmirror.com/mockjs/-/mockjs-1.1.0.tgz", |
| | | "integrity": "sha512-eQsKcWzIaZzEZ07NuEyO4Nw65g0hdWAyurVol1IPl1gahRwY+svqzfgfey8U8dahLwG44d6/RwEzuK52rSa/JQ==", |
| | | "dev": true, |
| | | "dependencies": { |
| | | "commander": "*" |
| | | }, |
| | | "bin": { |
| | | "random": "bin/random" |
| | | } |
| | | }, |
| | | "node_modules/ms": { |
| | | "version": "2.1.2", |
| | | "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", |
| | |
| | | "electron": "^30.0.9", |
| | | "electron-builder": "^24.13.3", |
| | | "electron-devtools-installer": "^3.2.0", |
| | | "mockjs": "^1.1.0", |
| | | "postcss": "^8.4.38", |
| | | "sass": "^1.77.4", |
| | | "tailwindcss": "^3.4.3", |
| | |
| | | <el-icon :size="50" color="#3680fa"><Timer /></el-icon> |
| | | </div> |
| | | <div class="dialog-info"> |
| | | 考试时间到,系统自动收卷中....... |
| | | 考试结束,系统自动收卷中....... |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | const quitDialog = ref(false); |
| | | const submitDialog = ref(false); |
| | | const timeDialog = ref(false); |
| | | |
| | | |
| | | const prevQuestion = () => { |
| | | currentIndex.value--; |
| | |
| | | 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 = () => { |
| | |
| | | }; |
| | | |
| | | const confirmQuit = () => { |
| | | quitDialog.value = false; |
| | | router.back(); |
| | | timeOut(); |
| | | }; |
| | | |
| | | // 交卷 |
| | |
| | | }; |
| | | |
| | | const confirmSubmit = () => { |
| | | submitDialog.value = false; |
| | | router.back(); |
| | | timeOut(); |
| | | }; |
| | | |
| | | const resetAllDialog = () => { |
| | |
| | | |
| | | <div class="grade-container flex items-center text-red-600"> |
| | | <div class="grade-label mr-1">成绩:</div> |
| | | <div class="grade-num text-lg font-bold">100</div> |
| | | <div class="grade-num text-lg font-bold">60</div> |
| | | </div> |
| | | </div> |
| | | <div class="right-container"> |