dev_202412
yujialong 3 months ago
parent a96dfec18e
commit 075d877b78
  1. 4
      src/pages/match/details/index.vue
  2. 12
      src/pages/theoryExam/index.vue

@ -1343,10 +1343,10 @@ export default {
},
//
show (row) {
this.curRow = row
//
if (this.form.completeCompetitionSetup.competitionType) { //
this.memberVisible = true
this.curRow = row
const teamId = this.form.competitionRegistration.teamId
if (teamId) {
this.$post(this.api.stageTeamScoreDetails, {
@ -1368,7 +1368,7 @@ export default {
//
toReport (row) {
this.$store.commit('project/setReferrer', this.$route.fullPath)
this.$router.push(`/record/${row.method === 1 ? 'theoryReport' : 'trialReport'}?reportId=${row.reportId}&matchId=${this.id}&matchName=${this.form.name}`)
this.$router.push(`/record/${this.curRow.method === 1 ? 'theoryReport' : 'trialReport'}?reportId=${row.reportId}&matchId=${this.id}&matchName=${this.form.name}`)
},
//

@ -25,7 +25,7 @@
<span>{{ timeSum.seconds }}</span>
</div>
<template v-if="submited">
<template v-if="submited && !per">
<div class="score">
<span>暂得分</span>
<div class="num">{{ score }}</div>
@ -252,6 +252,8 @@ export default {
this.paperId ? this.getPracticePaper() : this.getCompetition(1)
this.initOss()
}
per && sessionStorage.removeItem('theorySubmit')
},
methods: {
//
@ -794,7 +796,9 @@ export default {
window.opener && window.opener.location.reload()
clearInterval(this.counterTimer)
this.submiting = false
if (res.reportId) {
// reportId
if (!per) {
this.reportId = res.reportId
this.score = res.score
sessionStorage.setItem('theorySubmit', JSON.stringify({
@ -805,7 +809,7 @@ export default {
}
this.submited = true
per !== 2 && clearPracticeCache()
per !== 2 && this.clearPracticeCache()
//
if (autoSubmit) {
@ -834,7 +838,7 @@ export default {
confirmButtonText: '确定',
type: 'success',
callback: () => {
this.close()
this.$router.push(`/ass`)
}
})
} else {

Loading…
Cancel
Save