调整实操竞赛&星期显示
This commit is contained in:
parent
6ac7b9b932
commit
046a09f8b5
@ -163,3 +163,17 @@ export function getTestPaperDatail(competitionId) {
|
|||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
/** 提交实操结果 */
|
||||||
|
export function submitPracticalCompetition(group, competitionId, data) {
|
||||||
|
return request({
|
||||||
|
url: `/api/v1/competitionPractical/${group}/${competitionId}/finish`,
|
||||||
|
method: 'put',
|
||||||
|
data
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/** 开始实操竞赛 */
|
||||||
|
export function startPracticalCompetition(group, competitionId, data) {
|
||||||
|
return request({
|
||||||
|
url: `/api/v1/competitionPractical/${group}/${competitionId}/start`
|
||||||
|
});
|
||||||
|
}
|
||||||
|
@ -19,6 +19,7 @@ import ConstConfig from '@/scripts/ConstConfig';
|
|||||||
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
import {getRaceUserById} from '@/api/competition';
|
import {getRaceUserById} from '@/api/competition';
|
||||||
import { participantCreatTrainingRoom, getPracticalQuestion, getTheoryQuestion } from '@/api/competition';
|
import { participantCreatTrainingRoom, getPracticalQuestion, getTheoryQuestion } from '@/api/competition';
|
||||||
|
import {getRaceById } from '@/api/competition';
|
||||||
// import applyImg from '@/assets/apply.png';
|
// import applyImg from '@/assets/apply.png';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -181,10 +182,11 @@ export default {
|
|||||||
this.$messageBox('试卷还没被加载');
|
this.$messageBox('试卷还没被加载');
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
getRaceById(this.$route.query.raceId).then(resp => {
|
||||||
getPracticalQuestion(this.$route.query.raceId).then((responese)=>{
|
getPracticalQuestion(this.$route.query.raceId).then((responese)=>{
|
||||||
if (responese.data) {
|
if (responese.data) {
|
||||||
participantCreatTrainingRoom(this.$route.query.raceId, {mapId: 41, prdType: '03'}).then(resp => {
|
participantCreatTrainingRoom(this.$route.query.raceId, {mapId: resp.data.mapId, prdType: '03'}).then(resp => {
|
||||||
const query = { lineCode: '11', mapId: '41', group: resp.data, raceId: this.$route.query.raceId};
|
const query = { lineCode: '11', mapId: resp.data.mapId, group: resp.data, raceId: this.$route.query.raceId};
|
||||||
this.$router.replace({ path: `/jointTrainingNew`, query: query});
|
this.$router.replace({ path: `/jointTrainingNew`, query: query});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -193,6 +195,7 @@ export default {
|
|||||||
}).catch(()=>{
|
}).catch(()=>{
|
||||||
this.$messageBox('试卷还没被加载');
|
this.$messageBox('试卷还没被加载');
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,25 +89,25 @@ export default {
|
|||||||
const day = date.getDay();
|
const day = date.getDay();
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case 0:
|
case 0:
|
||||||
this.dayString = '星 期 一';
|
this.dayString = '星 期 日';
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
this.dayString = '星 期 二';
|
this.dayString = '星 期 一';
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
this.dayString = '星 期 三';
|
this.dayString = '星 期 二';
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
this.dayString = '星 期 四';
|
this.dayString = '星 期 三';
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
this.dayString = '星 期 五';
|
this.dayString = '星 期 四';
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
this.dayString = '星 期 六';
|
this.dayString = '星 期 五';
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
this.dayString = '星 期 日';
|
this.dayString = '星 期 六';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user