From 46e6dec30e1709bfe25695d0df95db76d8982e76 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 25 May 2020 09:52:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E8=B5=9B=E7=B3=BB=E7=BB=9F=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/jsxt/competition/examDetail.vue | 4 ++-- src/views/jsxt/competition/result.vue | 4 ++-- src/views/jsxt/competition/theory/quiz/index.vue | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/jsxt/competition/examDetail.vue b/src/views/jsxt/competition/examDetail.vue index e47c98d32..83b7a0fa6 100644 --- a/src/views/jsxt/competition/examDetail.vue +++ b/src/views/jsxt/competition/examDetail.vue @@ -151,14 +151,14 @@ export default { async exmaStart() { if (this.$route.query.type == 'theory') { getCompetitionTheory({competitionId:this.$route.query.raceId}).then(()=>{ - this.$router.push(`/jsxt/theory/detail/${this.$route.query.mapId}`); + this.$router.push(`/jsxt/theory/detail/${this.$route.query.mapId}?raceId=${this.$route.query.raceId}`); }).catch(()=>{ }); } else { // this.disabled = true; getCompetitionPractical(this.$route.query.raceId).then(()=>{ participantCreatTrainingRoom(this.$route.query.raceId, {mapId: 41, prdType: '02'}).then(resp => { - const query = { lineCode: '11', mapId: '41', group: resp.data, roomId: '385' }; + const query = { lineCode: '11', mapId: '41', group: resp.data, roomId: '385', raceId: this.$route.query.raceId}; this.$router.replace({ path: `/jointTrainingNew`, query: query}); }); }); diff --git a/src/views/jsxt/competition/result.vue b/src/views/jsxt/competition/result.vue index c44427194..0f9034df6 100644 --- a/src/views/jsxt/competition/result.vue +++ b/src/views/jsxt/competition/result.vue @@ -125,8 +125,8 @@ export default { } }, back() { - const query = {type: 'operation', mapId: this.$route.query.mapId}; - this.$router.push({path: `/jsxt/home`, query: query}); + const query = {type: 'operation', mapId: this.$route.query.mapId, raceId:this.$route.query.raceId}; + this.$router.push({path: `/jsxt/home`, query: query }); }, objectSpanMethod({ row, column, rowIndex, columnIndex }) { if ((columnIndex === 0 || columnIndex === 1 || columnIndex === 2) && row.scoringPointLength) { diff --git a/src/views/jsxt/competition/theory/quiz/index.vue b/src/views/jsxt/competition/theory/quiz/index.vue index 647ec6b6e..724158926 100644 --- a/src/views/jsxt/competition/theory/quiz/index.vue +++ b/src/views/jsxt/competition/theory/quiz/index.vue @@ -156,7 +156,8 @@ export default { doEnd() { // console.log('考试成绩'); // this.$router.push({ path: `/jsxt/home`}); - postCompetitionTheory(1, {competitionId:this.$route.query.raceId}).then(()=>{ + const params = {competitionId:this.$route.query.raceId}; + postCompetitionTheory(1, params).then(()=>{ this.$router.push({ path: `/jsxt/result`, query: { type: 'theory', raceId:this.$route.query.raceId } }); }); },