diff --git a/src/main/resources/views/platform/activity/school/ActivityApply.html b/src/main/resources/views/platform/activity/school/ActivityApply.html index d9089cc..3440d7a 100644 --- a/src/main/resources/views/platform/activity/school/ActivityApply.html +++ b/src/main/resources/views/platform/activity/school/ActivityApply.html @@ -1981,7 +1981,11 @@ layout("/layouts/platform.html"){ const {users, awardsModeT, awardsModeG, team, activity, getEvent} = resp.data this.activityData = activity this.eventData = getEvent - this.teams = team + this.teams = team.sort((a, b) => { + const numA = parseInt(a.name.replace('第', '').replace('队', '')) + const numB = parseInt(b.name.replace('第', '').replace('队', '')) + return numA - numB + }) if (this.teams.length) { this.team = this.teams[0].id this.teamId = this.teams[0].id