commit
This commit is contained in:
+1
-2
@@ -306,8 +306,7 @@ public class ActivityApplyController {
|
|||||||
Cnd cndTeam = Cnd.NEW();
|
Cnd cndTeam = Cnd.NEW();
|
||||||
cndTeam.and("eventId", "=", eventId);
|
cndTeam.and("eventId", "=", eventId);
|
||||||
cndTeam.and("activityId", "=", activityId);
|
cndTeam.and("activityId", "=", activityId);
|
||||||
cnd.asc("location");
|
List<ActivitySchoolTeam> teamList = activitySchoolTeamService.dao().query(ActivitySchoolTeam.class, cndTeam.orderBy("CAST(SUBSTRING(name FROM 2 FOR LOCATE('队', name) - 2) AS UNSIGNED)", "ASC"));
|
||||||
List<ActivitySchoolTeam> teamList = activitySchoolTeamService.query(cndTeam);
|
|
||||||
|
|
||||||
if (activity.getApplyMultipleTeamsUnionIds().contains(Vi.getUnionId())) {
|
if (activity.getApplyMultipleTeamsUnionIds().contains(Vi.getUnionId())) {
|
||||||
result.put("team", teamList);
|
result.put("team", teamList);
|
||||||
|
|||||||
@@ -1981,11 +1981,7 @@ layout("/layouts/platform.html"){
|
|||||||
const {users, awardsModeT, awardsModeG, team, activity, getEvent} = resp.data
|
const {users, awardsModeT, awardsModeG, team, activity, getEvent} = resp.data
|
||||||
this.activityData = activity
|
this.activityData = activity
|
||||||
this.eventData = getEvent
|
this.eventData = getEvent
|
||||||
this.teams = team.sort((a, b) => {
|
this.teams = team
|
||||||
const numA = parseInt(a.name.replace('第', '').replace('队', ''))
|
|
||||||
const numB = parseInt(b.name.replace('第', '').replace('队', ''))
|
|
||||||
return numA - numB
|
|
||||||
})
|
|
||||||
if (this.teams.length) {
|
if (this.teams.length) {
|
||||||
this.team = this.teams[0].id
|
this.team = this.teams[0].id
|
||||||
this.teamId = this.teams[0].id
|
this.teamId = this.teams[0].id
|
||||||
|
|||||||
Reference in New Issue
Block a user