Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
15643b0d05
@ -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});
|
||||
});
|
||||
});
|
||||
|
@ -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) {
|
||||
|
@ -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 } });
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user