diff --git a/src/views/martial/schedule/index.vue b/src/views/martial/schedule/index.vue index 1a562c8..472a60f 100644 --- a/src/views/martial/schedule/index.vue +++ b/src/views/martial/schedule/index.vue @@ -500,7 +500,7 @@ export default { period = hour < 12 ? 1 : 2 } - // 3. 获取序号:在同场地同时段中的顺序 + // 3. 获取序号:在同场地同时段中的顺序(与显示顺序一致) const sameSlotGroups = this.competitionGroups.filter(g => { const gVenueMatch = String(g.venueId) === String(group.venueId) if (!gVenueMatch) return false @@ -508,8 +508,7 @@ export default { const gPeriod = gHour < 12 ? 1 : 2 return gPeriod === period }) - // 按id排序保持稳定顺序 - sameSlotGroups.sort((a, b) => (a.id || 0) - (b.id || 0)) + // 使用原始数组顺序(与显示顺序一致),不再按id排序 const orderIndex = sameSlotGroups.findIndex(g => g.id === group.id) + 1 // 4. 格式化: 场地(1位) + 时段(1位) + 序号(2位)