|
|
@ -35,7 +35,12 @@ |
|
|
|
class="ml20" |
|
|
|
class="ml20" |
|
|
|
@click="batchImport">上传文件</el-button> |
|
|
|
@click="batchImport">上传文件</el-button> |
|
|
|
</div> |
|
|
|
</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" |
|
|
|
<el-button v-if="!published" |
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
|
@click="cancelPublish(1)">发布排名</el-button> |
|
|
|
@click="cancelPublish(1)">发布排名</el-button> |
|
|
@ -269,6 +274,8 @@ export default { |
|
|
|
method: this.$route.query.method, |
|
|
|
method: this.$route.query.method, |
|
|
|
competitionType: +this.$route.query.competitionType, |
|
|
|
competitionType: +this.$route.query.competitionType, |
|
|
|
rule: +this.$route.query.rule, |
|
|
|
rule: +this.$route.query.rule, |
|
|
|
|
|
|
|
searchTimer: null, |
|
|
|
|
|
|
|
keyword: '', |
|
|
|
teamCalculationMethods: [ |
|
|
|
teamCalculationMethods: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 0, |
|
|
|
id: 0, |
|
|
@ -330,6 +337,14 @@ export default { |
|
|
|
isPointWeight: false |
|
|
|
isPointWeight: false |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
watch: { |
|
|
|
|
|
|
|
keyword: function (val) { |
|
|
|
|
|
|
|
clearTimeout(this.searchTimer); |
|
|
|
|
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
|
|
|
|
this.getRank(); |
|
|
|
|
|
|
|
}, 500); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
mounted () { |
|
|
|
this.getStage() |
|
|
|
this.getStage() |
|
|
|
}, |
|
|
|
}, |
|
|
@ -351,7 +366,8 @@ export default { |
|
|
|
pageSize: this.pageSize, |
|
|
|
pageSize: this.pageSize, |
|
|
|
competitionId: this.id, |
|
|
|
competitionId: this.id, |
|
|
|
isOverallRanking: this.active ? 0 : 1, |
|
|
|
isOverallRanking: this.active ? 0 : 1, |
|
|
|
stageId: this.active || this.stageId |
|
|
|
stageId: this.active || this.stageId, |
|
|
|
|
|
|
|
keyword: this.keyword |
|
|
|
}).then(({ message, publishStatus }) => { |
|
|
|
}).then(({ message, publishStatus }) => { |
|
|
|
// isRelease 0未发布,1已发布 |
|
|
|
// isRelease 0未发布,1已发布 |
|
|
|
this.published = publishStatus |
|
|
|
this.published = publishStatus |
|
|
@ -370,15 +386,17 @@ export default { |
|
|
|
competitionId: this.id, |
|
|
|
competitionId: this.id, |
|
|
|
publicationType: this.type, |
|
|
|
publicationType: this.type, |
|
|
|
locationStageId: this.stageId, |
|
|
|
locationStageId: this.stageId, |
|
|
|
stageIds: ids.splice(0, ids.length - 1) |
|
|
|
stageIds: ids.splice(0, ids.length - 1), |
|
|
|
|
|
|
|
keyword: this.keyword |
|
|
|
}).then(({ page, publishStatus, total }) => { |
|
|
|
}).then(({ page, publishStatus, total }) => { |
|
|
|
this.published = publishStatus |
|
|
|
this.published = publishStatus |
|
|
|
this.list = page |
|
|
|
this.list = page |
|
|
|
this.total = total |
|
|
|
this.total = total |
|
|
|
this.getPublishTime() |
|
|
|
this.getPublishTime() |
|
|
|
}).catch(res => { }) |
|
|
|
}).catch(res => { }) |
|
|
|
} else { // 阶段排名 |
|
|
|
} 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 }) => { |
|
|
|
// 阶段排名 |
|
|
|
|
|
|
|
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.published = publishStatus |
|
|
|
this.list = page |
|
|
|
this.list = page |
|
|
|
this.total = total |
|
|
|
this.total = total |
|
|
|