From 0f6c7fe6b675007757f9a0c3e861e622501451b9 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 5 Nov 2024 16:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=90=86=E8=AE=BA=E8=80=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 4 + src/layouts/home/index.vue | 2 +- src/pages/ass/list/index.vue | 2 +- src/pages/match/details/index.vue | 2 +- src/pages/match/list/index.vue | 2 +- src/pages/record/theoryReport/index.vue | 16 +++- src/pages/station/preview/index.vue | 18 ++-- src/pages/{match => }/theoryExam/index.vue | 105 ++++++++++++++++----- src/pages/touristMatch/list/index.vue | 2 +- src/router/modules/match.js | 6 -- src/router/modules/theoryExam.js | 16 ++++ src/router/routes.js | 82 ++++++++-------- 12 files changed, 177 insertions(+), 80 deletions(-) rename src/pages/{match => }/theoryExam/index.vue (90%) create mode 100644 src/router/modules/theoryExam.js diff --git a/src/api/index.js b/src/api/index.js index 8aa1214..ae12e4c 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -57,6 +57,10 @@ export default { getSchoolCourseAuthority: `nakadai/nakadai/curriculum/getSchoolCourseAuthority`, detailsOfGoods: `nakadai/mall/detailsOfGoods`, requestRenewalNotice: `nakadai/nakadai/curriculum/requestRenewalNotice`, + getTestPaperPracticeCache: `exam/exam/paper/getTestPaperPracticeCache`, + recordTestPaperPracticeCache: `exam/exam/paper/recordTestPaperPracticeCache`, + getRecentTestPaperPracticeCache: `exam/exam/paper/getRecentTestPaperPracticeCache`, + getRecentTestPaperPracticeByCid: `exam/exam/paper/getRecentTestPaperPracticeByCid`, // 课程笔记 addNote: `nakadai/curriculumNotes/addNote`, diff --git a/src/layouts/home/index.vue b/src/layouts/home/index.vue index 167c977..b765719 100644 --- a/src/layouts/home/index.vue +++ b/src/layouts/home/index.vue @@ -70,7 +70,7 @@ export default { icon: 'optimize' } ], - showHeader: this.$route.path !== '/match/theoryExam', // 理论考试页面不显示头部 + showHeader: this.$route.path !== '/theoryExam', // 理论考试页面不显示头部 }; }, components: { diff --git a/src/pages/ass/list/index.vue b/src/pages/ass/list/index.vue index f5a4559..7c40fa2 100644 --- a/src/pages/ass/list/index.vue +++ b/src/pages/ass/list/index.vue @@ -389,7 +389,7 @@ export default { // 理论试卷 if (paperId) { - window.open(this.$router.resolve(`/match/theoryExam?paperId=${paperId}&assessmentId=${this.assessmentId}&classId=${classId}&cid=${this.cid}&mallId=${mallId}&curriculumName=${row.sysName}`).href) + window.open(this.$router.resolve(`/theoryExam?paperId=${paperId}&assessmentId=${this.assessmentId}&classId=${classId}&cid=${this.cid}&mallId=${mallId}&curriculumName=${row.sysName}`).href) } else { // 实训 util.cookies.set("token", token) diff --git a/src/pages/match/details/index.vue b/src/pages/match/details/index.vue index 1c10d5d..df1f2dd 100644 --- a/src/pages/match/details/index.vue +++ b/src/pages/match/details/index.vue @@ -1798,7 +1798,7 @@ export default { mallId = mallId || '' // 理论考试 if (method === 1) { - window.open(this.$router.resolve(`/match/theoryExam?id=${form.id}&stageId=${stageId}&teamId=${teamId}`).href) + window.open(this.$router.resolve(`/theoryExam?competitionId=${form.id}&stageId=${stageId}&teamId=${teamId}`).href) } else { let token = Util.local.get(Setting.tokenKey); if (systemId == 11) { diff --git a/src/pages/match/list/index.vue b/src/pages/match/list/index.vue index bc80003..8aff69a 100644 --- a/src/pages/match/list/index.vue +++ b/src/pages/match/list/index.vue @@ -1114,7 +1114,7 @@ export default { mallId = mallId || '' // 理论考试 if (method === 1) { - window.open(this.$router.resolve(`/match/theoryExam?id=${form.id}&stageId=${stageId}&teamId=${teamId}`).href) + window.open(this.$router.resolve(`/theoryExam?competitionId=${form.id}&stageId=${stageId}&teamId=${teamId}`).href) this.choosing = false } else { let token = Util.local.get(Setting.tokenKey) diff --git a/src/pages/record/theoryReport/index.vue b/src/pages/record/theoryReport/index.vue index fa8bb99..6202cb3 100644 --- a/src/pages/record/theoryReport/index.vue +++ b/src/pages/record/theoryReport/index.vue @@ -2,6 +2,7 @@
+ 返回实验
@@ -272,6 +273,7 @@ export default { numToLetter: Util.numToLetter, arabicToChinese: Util.arabicToChinese, reportId: this.$route.query.reportId, + fromTheory: this.$route.query.theory, // 来自理论考试 matchName: this.$route.query.matchName, // 竞赛特有 token: Util.local.get(Setting.tokenKey), title: "实验报告", @@ -554,6 +556,18 @@ export default {