From ebbbd449ae7e8a519a069b67aed213918613d5b3 Mon Sep 17 00:00:00 2001 From: yokowu <18836617@qq.com> Date: Fri, 5 Jun 2026 19:00:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9B=A2=E9=98=9F=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=88=97=E8=A1=A8=E9=A1=B5=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/manager/manager-list-page.tsx | 80 +++++++ .../manager/team-data-table-pagination.tsx | 6 +- .../pages/console/manager/conversations.tsx | 138 ++++++------ .../src/pages/console/manager/projects.tsx | 146 ++++++------ frontend/src/pages/console/manager/tasks.tsx | 212 ++++++++++++------ 5 files changed, 388 insertions(+), 194 deletions(-) create mode 100644 frontend/src/components/manager/manager-list-page.tsx diff --git a/frontend/src/components/manager/manager-list-page.tsx b/frontend/src/components/manager/manager-list-page.tsx new file mode 100644 index 00000000..4a4ba0c2 --- /dev/null +++ b/frontend/src/components/manager/manager-list-page.tsx @@ -0,0 +1,80 @@ +import type { ReactNode } from "react" + +import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" +import { Empty, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "@/components/ui/empty" +import { Spinner } from "@/components/ui/spinner" + +export function ManagerListCard({ + title, + description, + icon, + count, + children, + pagination, +}: { + title: string + description: string + icon: ReactNode + count?: number + children: ReactNode + pagination: ReactNode +}) { + return ( + + + + {icon} + {title} + + + {description} + {typeof count === "number" && ` · 当前 ${count} 条`} + + + +
{children}
+ {pagination} +
+
+ ) +} + +export function ManagerListLoading({ title }: { title: string }) { + return ( + + + + + + + + {title} + + + + + ) +} + +export function ManagerListEmpty({ + title, + description, + colSpan, +}: { + title: string + description: string + colSpan: number +}) { + return ( + + + + + {title} + {description} + + + + + ) +} diff --git a/frontend/src/components/manager/team-data-table-pagination.tsx b/frontend/src/components/manager/team-data-table-pagination.tsx index 83fda192..ba5b0b1c 100644 --- a/frontend/src/components/manager/team-data-table-pagination.tsx +++ b/frontend/src/components/manager/team-data-table-pagination.tsx @@ -31,9 +31,9 @@ export function TeamDataTablePagination({ onPageSizeChange: (size: number) => void }) { return ( -
+
- 每页显示: + 每页显示: