|
|
|
@ -35,7 +35,12 @@ |
|
|
|
|
class="ml20" |
|
|
|
|
@click="batchImport">上传文件</el-button> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<div style="display: inline-flex;align-items: center"> |
|
|
|
|
<el-input style="margin-right: 15px" |
|
|
|
|
placeholder="请输入团队名称/队长/学校" |
|
|
|
|
prefix-icon="el-icon-search" |
|
|
|
|
v-model="keyword" |
|
|
|
|
clearable></el-input> |
|
|
|
|
<el-button v-if="!published" |
|
|
|
|
type="primary" |
|
|
|
|
@click="cancelPublish(1)">发布排名</el-button> |
|
|
|
@ -269,6 +274,8 @@ export default { |
|
|
|
|
method: this.$route.query.method, |
|
|
|
|
competitionType: +this.$route.query.competitionType, |
|
|
|
|
rule: +this.$route.query.rule, |
|
|
|
|
searchTimer: null, |
|
|
|
|
keyword: '', |
|
|
|
|
teamCalculationMethods: [ |
|
|
|
|
{ |
|
|
|
|
id: 0, |
|
|
|
@ -330,6 +337,14 @@ export default { |
|
|
|
|
isPointWeight: false |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
keyword: function (val) { |
|
|
|
|
clearTimeout(this.searchTimer); |
|
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
|
this.getRank(); |
|
|
|
|
}, 500); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted () { |
|
|
|
|
this.getStage() |
|
|
|
|
}, |
|
|
|
@ -351,7 +366,8 @@ export default { |
|
|
|
|
pageSize: this.pageSize, |
|
|
|
|
competitionId: this.id, |
|
|
|
|
isOverallRanking: this.active ? 0 : 1, |
|
|
|
|
stageId: this.active || this.stageId |
|
|
|
|
stageId: this.active || this.stageId, |
|
|
|
|
keyword: this.keyword |
|
|
|
|
}).then(({ message, publishStatus }) => { |
|
|
|
|
// isRelease 0未发布,1已发布 |
|
|
|
|
this.published = publishStatus |
|
|
|
@ -370,15 +386,17 @@ export default { |
|
|
|
|
competitionId: this.id, |
|
|
|
|
publicationType: this.type, |
|
|
|
|
locationStageId: this.stageId, |
|
|
|
|
stageIds: ids.splice(0, ids.length - 1) |
|
|
|
|
stageIds: ids.splice(0, ids.length - 1), |
|
|
|
|
keyword: this.keyword |
|
|
|
|
}).then(({ page, publishStatus, total }) => { |
|
|
|
|
this.published = publishStatus |
|
|
|
|
this.list = page |
|
|
|
|
this.total = total |
|
|
|
|
this.getPublishTime() |
|
|
|
|
}).catch(res => { }) |
|
|
|
|
} else { // 阶段排名 |
|
|
|
|
this.$post(`${this.api.stageRaceRanking}?competitionId=${this.id}&stageId=${this.active}&pageNum=${this.page}&pageSize=${this.pageSize}&publicationType=${this.type}`).then(({ page, total, publishStatus }) => { |
|
|
|
|
} 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 }) => { |
|
|
|
|
this.published = publishStatus |
|
|
|
|
this.list = page |
|
|
|
|
this.total = total |
|
|
|
|