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 {