This commit is contained in:
zyy 2020-05-25 10:29:14 +08:00
commit 15643b0d05
3 changed files with 6 additions and 5 deletions

View File

@ -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});
});
});

View File

@ -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) {

View File

@ -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 } });
});
},