From 77db1995b7f90ba03cb809b0babb22d5672ac30c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=8B=A5?= Date: Sun, 8 Mar 2026 17:00:24 +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/TeamRecruitTab.tsx | 33 ++++++++++++++++--- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/soul-admin/src/pages/find-partner/tabs/TeamRecruitTab.tsx b/soul-admin/src/pages/find-partner/tabs/TeamRecruitTab.tsx index 2d0d83c5..c09ef21f 100644 --- a/soul-admin/src/pages/find-partner/tabs/TeamRecruitTab.tsx +++ b/soul-admin/src/pages/find-partner/tabs/TeamRecruitTab.tsx @@ -3,7 +3,8 @@ import { Card, CardContent } from '@/components/ui/card' import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table' import { RefreshCw } from 'lucide-react' import { Pagination } from '@/components/ui/Pagination' -import { get } from '@/api/client' +import { Button } from '@/components/ui/button' +import { get, post } from '@/api/client' interface MatchRecord { id: string; userId: string; matchedUserId: string; matchType: string @@ -17,6 +18,7 @@ export function TeamRecruitTab() { const [page, setPage] = useState(1) const [pageSize, setPageSize] = useState(10) const [isLoading, setIsLoading] = useState(true) + const [inserting, setInserting] = useState(false) async function load() { setIsLoading(true) @@ -31,6 +33,22 @@ export function TeamRecruitTab() { useEffect(() => { load() }, [page]) const totalPages = Math.ceil(total / pageSize) || 1 + const insertTest = async () => { + setInserting(true) + try { + const phone = `139${Date.now().toString().slice(-8)}` + const res = await post<{ success?: boolean; message?: string }>('/api/db/match-records/test', { + matchType: 'team', + phone, + }) + alert(res?.message || '测试记录已插入') + await load() + } catch (e) { + alert('插入失败: ' + (e instanceof Error ? e.message : '网络错误')) + } finally { + setInserting(false) + } + } return (
@@ -39,10 +57,15 @@ export function TeamRecruitTab() {

团队招募匹配记录,共 {total} 条

用户通过「团队招募」提交联系方式到存客宝

- +
+ + +