From 4a3d034233452ef23053d1bdba013755358cef3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=8B=A5?= Date: Sun, 8 Mar 2026 11:27:11 +0800 Subject: [PATCH] =?UTF-8?q?sync:=20soul-admin=20=E9=A1=B5=E9=9D=A2=20|=20?= =?UTF-8?q?=E5=8E=9F=E5=9B=A0:=20=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../find-partner/tabs/MatchRecordsTab.tsx | 60 +++++++++++-------- 1 file changed, 34 insertions(+), 26 deletions(-) diff --git a/soul-admin/src/pages/find-partner/tabs/MatchRecordsTab.tsx b/soul-admin/src/pages/find-partner/tabs/MatchRecordsTab.tsx index 15753e8a..31bb1320 100644 --- a/soul-admin/src/pages/find-partner/tabs/MatchRecordsTab.tsx +++ b/soul-admin/src/pages/find-partner/tabs/MatchRecordsTab.tsx @@ -6,6 +6,7 @@ import { import { Badge } from '@/components/ui/badge' import { RefreshCw } from 'lucide-react' import { Pagination } from '@/components/ui/Pagination' +import { UserDetailModal } from '@/components/modules/user/UserDetailModal' import { get } from '@/api/client' interface MatchRecord { @@ -15,7 +16,7 @@ interface MatchRecord { } const matchTypeLabels: Record = { - partner: '超级个体', investor: '资源对接', mentor: '导师顾问', team: '团队招募', + partner: '找伙伴', investor: '资源对接', mentor: '导师顾问', team: '团队招募', } export function MatchRecordsTab() { @@ -26,6 +27,7 @@ export function MatchRecordsTab() { const [matchTypeFilter, setMatchTypeFilter] = useState('') const [isLoading, setIsLoading] = useState(true) const [error, setError] = useState(null) + const [detailUserId, setDetailUserId] = useState(null) async function loadRecords() { setIsLoading(true); setError(null) @@ -43,6 +45,19 @@ export function MatchRecordsTab() { const totalPages = Math.ceil(total / pageSize) || 1 + const UserCell = ({ userId, nickname, avatar }: { userId: string; nickname?: string; avatar?: string }) => ( +
setDetailUserId(userId)}> +
+ {avatar ? { (e.currentTarget as HTMLImageElement).style.display = 'none' }} /> : null} + {(nickname || userId || '?').charAt(0)} +
+
+
{nickname || userId}
+
{userId?.slice(0, 16)}{userId?.length > 16 ? '...' : ''}
+
+
+ ) + return (
{error && ( @@ -52,7 +67,7 @@ export function MatchRecordsTab() {
)}
-

共 {total} 条匹配记录

+

共 {total} 条匹配记录 · 点击用户名查看详情