From 23d1856dcc50759932a405623e959df6784caf06 Mon Sep 17 00:00:00 2001 From: Z-WICK <2289431216@qq.com> Date: Thu, 15 Jan 2026 13:16:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8F=B7?= =?UTF-8?q?=E4=B8=8E=E5=BA=8F=E5=8F=B7=E9=A1=BA=E5=BA=8F=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除按id排序逻辑,使表号与显示顺序保持一致 Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- src/views/martial/schedule/index.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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位)