|
|
|
@ -53,6 +53,7 @@ |
|
|
|
|
header-align="center" |
|
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
|
row-key="id" |
|
|
|
|
v-loading="loading" |
|
|
|
|
@sort-change="sortChange"> |
|
|
|
|
<el-table-column type="selection" |
|
|
|
|
width="80" |
|
|
|
@ -437,6 +438,7 @@ export default { |
|
|
|
|
diffSchool: false, |
|
|
|
|
uploading: false, |
|
|
|
|
exporting: false, |
|
|
|
|
loading: false, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
@ -458,8 +460,9 @@ export default { |
|
|
|
|
this.getTeam() |
|
|
|
|
this.getClient() |
|
|
|
|
}, |
|
|
|
|
getData () { |
|
|
|
|
this.$post(this.api.queryRegistrationByCondition, { |
|
|
|
|
async getData () { |
|
|
|
|
this.loading = true |
|
|
|
|
const { data } = await this.$post(this.api.queryRegistrationByCondition, { |
|
|
|
|
pageNum: this.page, |
|
|
|
|
pageSize: this.pageSize, |
|
|
|
|
competitionId: this.id, |
|
|
|
@ -467,7 +470,7 @@ export default { |
|
|
|
|
isDisable: this.isDisable, |
|
|
|
|
schoolOrder: this.schoolOrder, |
|
|
|
|
teamOrder: this.teamOrder, |
|
|
|
|
}).then(({ data }) => { |
|
|
|
|
}) |
|
|
|
|
const list = data.records; |
|
|
|
|
list.map(e => { |
|
|
|
|
if (e.teacherDetails) { |
|
|
|
@ -477,8 +480,7 @@ export default { |
|
|
|
|
this.listData = list |
|
|
|
|
this.total = data.total; |
|
|
|
|
this.$refs.table.clearSelection(); |
|
|
|
|
}).catch(res => { |
|
|
|
|
}); |
|
|
|
|
this.loading = false |
|
|
|
|
}, |
|
|
|
|
// 获取赛事信息 |
|
|
|
|
getInfo () { |
|
|
|
@ -718,7 +720,6 @@ export default { |
|
|
|
|
this.$refs.form.validate((valid) => { |
|
|
|
|
if (valid) { |
|
|
|
|
if (this.submiting) return false |
|
|
|
|
this.submiting = true |
|
|
|
|
const { form } = this |
|
|
|
|
const team = this.teams.find(e => e.teamId == form.teamId) |
|
|
|
|
if (team && team.invitationCode) form.invitationCode = team.invitationCode |
|
|
|
|