裁判系统 代码调整
This commit is contained in:
parent
2ee3ecd2b0
commit
d28aa00c78
@ -185,7 +185,7 @@ export default {
|
||||
};
|
||||
postCompetitionTheory(params).then(()=>{
|
||||
const storeKey = this.$store.state.user.id + '' + this.$route.query.raceId + 'theory';
|
||||
localStore.set(storeKey, null);
|
||||
localStore.remove(storeKey);
|
||||
this.$router.push({ path: `/jsxt/theory/result?raceId=${this.$route.query.raceId}` });
|
||||
});
|
||||
},
|
||||
|
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="refereeList">
|
||||
<div class="raceName">{{ raceName }}竞赛</div>
|
||||
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
||||
<edit-score ref="editScore" />
|
||||
</div>
|
||||
@ -43,15 +44,18 @@ export default {
|
||||
columns: [
|
||||
{
|
||||
title: '名字',
|
||||
prop: 'name'
|
||||
prop: 'name',
|
||||
width:200
|
||||
},
|
||||
{
|
||||
title: '手机号',
|
||||
prop: 'mobile'
|
||||
prop: 'mobile',
|
||||
width:140
|
||||
},
|
||||
{
|
||||
title: '公司',
|
||||
prop: 'organization'
|
||||
prop: 'organization',
|
||||
width:180
|
||||
},
|
||||
{
|
||||
title: '部门',
|
||||
@ -59,11 +63,13 @@ export default {
|
||||
},
|
||||
{
|
||||
title: '报名时间',
|
||||
prop: 'time'
|
||||
prop: 'time',
|
||||
width:180
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
prop: 'status',
|
||||
width:100,
|
||||
type: 'tag',
|
||||
columnValue: (row) => { return this.covertStatus(row.status); },
|
||||
tagType: (row) => { return 'success'; }
|
||||
@ -71,6 +77,7 @@ export default {
|
||||
{
|
||||
title: '理论分数',
|
||||
prop: 'theoryScore',
|
||||
width:100,
|
||||
type: 'tag',
|
||||
columnValue: (row) => { return row.artificialTheoryScore ? `${row.theoryScore}(${row.artificialTheoryScore})` : row.theoryScore || '0'; },
|
||||
tagType: (row) => { return 'success'; }
|
||||
@ -78,13 +85,15 @@ export default {
|
||||
{
|
||||
title: '实操分数',
|
||||
prop: 'practiceScore',
|
||||
width:100,
|
||||
type: 'tag',
|
||||
columnValue: (row) => { return row.artificialPracticeScore ? `${row.practiceScore}(${row.artificialPracticeScore})` : row.practiceScore || '0'; },
|
||||
tagType: (row) => { return 'success'; }
|
||||
},
|
||||
{
|
||||
title: '总分',
|
||||
prop: 'totalScore'
|
||||
prop: 'totalScore',
|
||||
width:100
|
||||
},
|
||||
// {
|
||||
// title: '竞赛名称',
|
||||
@ -107,7 +116,7 @@ export default {
|
||||
name: '理论结果',
|
||||
handleClick: this.handleTheoryResult,
|
||||
type: '',
|
||||
showControl: (row) => { return row.status == '5'; }
|
||||
showControl: (row) => { return row.status == '5' || row.status == '4'; }
|
||||
},
|
||||
{
|
||||
name: '实操回放',
|
||||
@ -129,7 +138,9 @@ export default {
|
||||
]
|
||||
},
|
||||
isLeaving:false,
|
||||
inter:null
|
||||
inter:null,
|
||||
mapId:'',
|
||||
raceName:''
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@ -138,6 +149,10 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.getData();
|
||||
getRaceById(this.$route.query.raceId).then(res=>{
|
||||
this.mapId = res.data.mapId;
|
||||
this.raceName = res.data.name;
|
||||
});
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.isLeaving = true;
|
||||
@ -202,23 +217,19 @@ export default {
|
||||
},
|
||||
handleClick(index, row) {
|
||||
const group = row.group;
|
||||
getRaceById(row.raceId).then(res=>{
|
||||
getPublishMapInfo(res.data.mapId).then(resp=>{
|
||||
getPublishMapInfo(this.mapId).then(resp=>{
|
||||
refereeEnterSimulation(group).then(response=>{
|
||||
const query = { lineCode: resp.data.lineCode, mapId: res.data.mapId, group: group, raceId: this.$route.query.raceId};
|
||||
const query = { lineCode: resp.data.lineCode, mapId: this.mapId, group: group, raceId: this.$route.query.raceId};
|
||||
this.$router.push({ path: `/jointTrainingNew`, query: query});
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
playBack(index, row) {
|
||||
const group = row.group;
|
||||
getRaceById(row.raceId).then(res=>{
|
||||
getPublishMapInfo(res.data.mapId).then(resp=>{
|
||||
const query = { lineCode: resp.data.lineCode, mapId: res.data.mapId, group: group, raceId: this.$route.query.raceId};
|
||||
getPublishMapInfo(this.mapId).then(resp=>{
|
||||
const query = { lineCode: resp.data.lineCode, mapId: this.mapId, group: group, raceId: this.$route.query.raceId};
|
||||
this.$router.push({ path: `/refereeJsxtDisplay`, query: query});
|
||||
});
|
||||
});
|
||||
},
|
||||
gradeScore(index, row) { // 裁判打分
|
||||
this.$refs.editScore.doShow(row);
|
||||
@ -233,4 +244,10 @@ export default {
|
||||
};
|
||||
</script>
|
||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||
.raceName{
|
||||
padding: 15px 0px;
|
||||
font-size: 18px;
|
||||
background: #fff;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user