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} 条匹配记录 · 点击用户名查看详情