From b07430d3b20ebe981e016116aa861f7ee0d51ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Thu, 5 Nov 2026 11:24:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E6=94=AF=E6=8C=81+?= =?UTF-8?q?=E5=8F=B7=E7=9A=84=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/scoring/workbench/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/scoring/workbench/index.vue b/src/views/scoring/workbench/index.vue index f47744a..f30ec4b 100644 --- a/src/views/scoring/workbench/index.vue +++ b/src/views/scoring/workbench/index.vue @@ -436,8 +436,8 @@ function formatSessionName(session, index) { (session.projectName && rawName.includes(session.projectName)) ); if (rawName && !isAutoCompound) { - const numericMatch = rawName.match(/^(?:第\s*)?(\d+)(?:\s*场)?$/); - if (numericMatch) return `第 ${parseInt(numericMatch[1], 10)} 场`; + const numericMatch = rawName.match(/^(?:第\s*)?(\d+)\s*(\+?)(?:\s*场)?$/); + if (numericMatch) return `第 ${parseInt(numericMatch[1], 10)}${numericMatch[2] || ''} 场`; return rawName; } const no = String(session.sessionNo || '').trim(); @@ -476,6 +476,9 @@ function formatSessionText(sessionNo) { return String(sessionNo).replace(/^EP/i, '场次 '); } function rowSessionDisplay(row){ + const sessionName=String(row?._session?.sessionName??'').trim(); + const importedSession=sessionName.match(/^(?:第\s*)?(\d+)\s*(\+?)(?:\s*场)?$/); + if(importedSession)return `第${importedSession[1]}${importedSession[2]}场`; const sessionOrder=Number(row?.sessionOrder); if(Number.isInteger(sessionOrder)&&sessionOrder>0)return `第${sessionOrder}场`; const session=row?._session;if(!session)return '—';return formatSessionName(session,session._sourceIndex).replace(/\s+/g,'');