From 8b26b8c7175c0ef5eee2a434844391b73747ae76 Mon Sep 17 00:00:00 2001
From: Z-WICK <2289431216@qq.com>
Date: Mon, 29 Dec 2025 13:24:14 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=98=BE=E7=A4=BA=E6=89=80=E5=B1=9E=E8=B5=9B?=
=?UTF-8?q?=E4=BA=8B=E5=90=8D=E7=A7=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/martial/project/index.vue | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/src/views/martial/project/index.vue b/src/views/martial/project/index.vue
index e6c5fd3..d6d0334 100644
--- a/src/views/martial/project/index.vue
+++ b/src/views/martial/project/index.vue
@@ -128,12 +128,11 @@
min-width="180"
show-overflow-tooltip
/>
-
+
+
+ {{ getCompetitionName(row.competitionId) }}
+
+
{{ row.category || '-' }}
@@ -419,7 +418,7 @@
{{ detailData.projectName }}
- {{ detailData.competitionName }}
+ {{ getCompetitionName(detailData.competitionId) }}
男子
@@ -839,6 +838,13 @@ const handleExport = async () => {
}
}
+// 根据ID获取赛事名称
+const getCompetitionName = (competitionId) => {
+ if (!competitionId) return '-'
+ const competition = competitionList.value.find(item => item.id === competitionId)
+ return competition ? competition.competitionName : '-'
+}
+
// 格式化日期
const formatDate = (date) => {
if (!date) return '-'