feat: 重构管理端列表与风控/结算导航,新增表格导出和结算审核确认
This commit is contained in:
@@ -6,6 +6,7 @@ import { useTranslation } from "react-i18next";
|
||||
|
||||
import { getAdminRiskPoolDetail } from "@/api/admin-risk";
|
||||
import { AdminListPaginationFooter } from "@/components/admin/admin-list-pagination-footer";
|
||||
import { AdminTableExportButton } from "@/components/admin/admin-table-export-button";
|
||||
import { buttonVariants } from "@/components/ui/button";
|
||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import {
|
||||
@@ -68,7 +69,7 @@ export function RiskPoolDetailConsole({
|
||||
<CardContent className="space-y-2">
|
||||
<p className="text-sm text-destructive">{error}</p>
|
||||
<Link
|
||||
href={`/admin/risk/draws/${drawId}/pools`}
|
||||
href={`/admin/draws/${drawId}/risk/pools`}
|
||||
className={cn(buttonVariants({ variant: "outline", size: "sm" }))}
|
||||
>
|
||||
{t("backToList")}
|
||||
@@ -92,7 +93,7 @@ export function RiskPoolDetailConsole({
|
||||
<div className="space-y-6">
|
||||
<div className="flex flex-wrap items-center justify-between gap-2">
|
||||
<Link
|
||||
href={`/admin/risk/draws/${drawId}/pools`}
|
||||
href={`/admin/draws/${drawId}/risk/pools`}
|
||||
className={cn(buttonVariants({ variant: "ghost", size: "sm" }))}
|
||||
>
|
||||
← {t("backToAllPools")}
|
||||
@@ -142,7 +143,14 @@ export function RiskPoolDetailConsole({
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-4">
|
||||
<div className="overflow-x-auto rounded-md border">
|
||||
<Table>
|
||||
<div className="admin-table-toolbar">
|
||||
<AdminTableExportButton
|
||||
tableId={`risk-pool-detail-table-${drawId}-${number4d}`}
|
||||
filename={`风险池详情-${number4d}`}
|
||||
sheetName="风险池详情"
|
||||
/>
|
||||
</div>
|
||||
<Table id={`risk-pool-detail-table-${drawId}-${number4d}`}>
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
<TableHead>{t("time")}</TableHead>
|
||||
|
||||
Reference in New Issue
Block a user