赛事成绩列表实训跟理论合并,线下单独一个页面

master
yujialong 2 months ago
parent a033ef3565
commit d0764a64a0
  1. 2
      src/views/match/manage/matchArch.vue
  2. 2
      src/views/match/manage/theoryArchList.vue
  3. 7
      src/views/match/manage/trialReport.vue

@ -101,7 +101,7 @@ export default {
this.$store.commit('setInnerReferrer', this.$route.fullPath)
const cur = this.form.competitionStage[i]
const showFile = !!(cur.method === 2 && cur.competitionStageContentSetting && cur.competitionStageContentSetting.whetherToUploadFiles)
this.$router.push(`/${cur.method !== 1 ? 'matchArchList' : 'theoryArchList'}?id=${this.id}&stageId=${row.stageId}&method=${row.method}&competitionType=${row.competitionType}&showFile=${showFile}`)
this.$router.push(`/${cur.method === 2 ? 'matchArchList' : 'theoryArchList'}?id=${this.id}&stageId=${row.stageId}&method=${row.method}&competitionType=${row.competitionType}&showFile=${showFile}`)
}
}
};

@ -228,7 +228,7 @@ export default {
},
//
show (row) {
this.$router.push(`/theoryReport?reportId=${row.reportId}`)
this.$router.push(`/${this.method === 1 ? 'theoryReport' : 'trialReport'}?reportId=${row.reportId}`)
},
// ()
async exportData () {

@ -169,7 +169,6 @@ export default {
this.loading = true
this.$get(`${this.api.reportDetail}?reportId=${this.reportId}`).then(({ report, userScores }) => {
this.form = report
this.expData = userScores
this.project = this.expData.find(e => e.lcRuleRecords) // lcRuleRecords
let form = this.form;
this.infoData = {
@ -183,17 +182,17 @@ export default {
className: form.className,
userName: form.userName
}
const data = report.data
this.userScores = userScores
const { data } = report
// data使
if (!data) {
this.userScores = userScores
this.handleList(userScores)
this.$post(this.api.editExperimentalData, {
reportId,
data: JSON.stringify(userScores)
}).then(res => { }).catch(err => { })
} else {
this.handleList(userScores.find(e => e.lcRuleRecords) ? userScores : JSON.parse(data))
this.handleList(JSON.parse(data))
}
}).catch(res => {
this.loading = false

Loading…
Cancel
Save