|
|
|
@ -11,6 +11,7 @@ |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
v-loading="loading" |
|
|
|
|
class="m-b-20"> |
|
|
|
|
<div class="tabs"> |
|
|
|
|
<template v-for="(item, i) in grades"> |
|
|
|
@ -60,7 +61,6 @@ |
|
|
|
|
ref="table" |
|
|
|
|
stripe |
|
|
|
|
row-key="scoreId" |
|
|
|
|
v-loading="loading" |
|
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
|
header-align="center"> |
|
|
|
|
<el-table-column type="selection" |
|
|
|
@ -372,6 +372,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 查询排名 |
|
|
|
|
getRank () { |
|
|
|
|
this.loading = true |
|
|
|
|
// 手动上传的排名接口 |
|
|
|
|
if (this.type) { |
|
|
|
|
this.$post(this.api.manuallyUploadedRankings, { |
|
|
|
@ -389,7 +390,9 @@ export default { |
|
|
|
|
this.total = message.total |
|
|
|
|
this.getPublishTime() |
|
|
|
|
this.loading = false |
|
|
|
|
}).catch(res => { }) |
|
|
|
|
}).catch(res => { |
|
|
|
|
this.loading = false |
|
|
|
|
}) |
|
|
|
|
} else { // 默认排名接口 |
|
|
|
|
if (!this.active) { |
|
|
|
|
// 总分排名 |
|
|
|
@ -408,7 +411,9 @@ export default { |
|
|
|
|
this.total = total |
|
|
|
|
this.getPublishTime() |
|
|
|
|
this.loading = false |
|
|
|
|
}).catch(res => { }) |
|
|
|
|
}).catch(res => { |
|
|
|
|
this.loading = false |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
// 阶段排名 |
|
|
|
|
this.$post(`${this.api.stageRaceRanking}?competitionId=${this.id}&stageId=${this.active}&pageNum=${this.page}&pageSize=${this.pageSize}&publicationType=${this.type}&keyword=${this.keyword}`).then(({ page, total, publishStatus }) => { |
|
|
|
@ -417,7 +422,9 @@ export default { |
|
|
|
|
this.total = total |
|
|
|
|
this.getPublishTime() |
|
|
|
|
this.loading = false |
|
|
|
|
}).catch(res => { }) |
|
|
|
|
}).catch(res => { |
|
|
|
|
this.loading = false |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -443,8 +450,8 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 排序类型切换回调 |
|
|
|
|
typeChange (val) { |
|
|
|
|
this.$post(`${this.api.toggleTheSortingMode}?competitionId=${this.id}&stageId=${this.active || this.stageId}&isOverallRanking=${this.active ? 0 : 1}&whetherToManuallyPublish=${this.type}`).then(res => { }).catch(res => { }) |
|
|
|
|
async typeChange (val) { |
|
|
|
|
await this.$post(`${this.api.toggleTheSortingMode}?competitionId=${this.id}&stageId=${this.active || this.stageId}&isOverallRanking=${this.active ? 0 : 1}&whetherToManuallyPublish=${this.type}`) |
|
|
|
|
this.getRank() |
|
|
|
|
}, |
|
|
|
|
initData () { |
|
|
|
|