feat: 重构管理端列表与风控/结算导航,新增表格导出和结算审核确认
This commit is contained in:
17
src/app/admin/(shell)/draws/[drawId]/risk/hot/page.tsx
Normal file
17
src/app/admin/(shell)/draws/[drawId]/risk/hot/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { RiskPoolsConsole } from "@/modules/risk/risk-pools-console";
|
||||
|
||||
export default async function AdminDrawRiskHotPage(props: {
|
||||
params: Promise<{ drawId: string }>;
|
||||
}) {
|
||||
const { drawId } = await props.params;
|
||||
const id = Number(drawId);
|
||||
|
||||
return (
|
||||
<RiskPoolsConsole
|
||||
drawId={id}
|
||||
title="热门号码监控"
|
||||
soldOutOnly={false}
|
||||
defaultSort="usage_desc"
|
||||
/>
|
||||
);
|
||||
}
|
||||
10
src/app/admin/(shell)/draws/[drawId]/risk/occupancy/page.tsx
Normal file
10
src/app/admin/(shell)/draws/[drawId]/risk/occupancy/page.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { RiskLockLogsConsole } from "@/modules/risk/risk-lock-logs-console";
|
||||
|
||||
export default async function AdminDrawRiskOccupancyPage(props: {
|
||||
params: Promise<{ drawId: string }>;
|
||||
}) {
|
||||
const { drawId } = await props.params;
|
||||
const id = Number(drawId);
|
||||
|
||||
return <RiskLockLogsConsole drawId={id} />;
|
||||
}
|
||||
9
src/app/admin/(shell)/draws/[drawId]/risk/page.tsx
Normal file
9
src/app/admin/(shell)/draws/[drawId]/risk/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function AdminDrawRiskIndexPage(props: {
|
||||
params: Promise<{ drawId: string }>;
|
||||
}) {
|
||||
const { drawId } = await props.params;
|
||||
|
||||
redirect(`/admin/draws/${drawId}/risk/occupancy`);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { RiskPoolDetailConsole } from "@/modules/risk/risk-pool-detail-console";
|
||||
|
||||
export default async function AdminDrawRiskPoolDetailPage(props: {
|
||||
params: Promise<{ drawId: string; number: string }>;
|
||||
}) {
|
||||
const { drawId, number } = await props.params;
|
||||
const id = Number(drawId);
|
||||
|
||||
return <RiskPoolDetailConsole drawId={id} number4d={number} />;
|
||||
}
|
||||
18
src/app/admin/(shell)/draws/[drawId]/risk/pools/page.tsx
Normal file
18
src/app/admin/(shell)/draws/[drawId]/risk/pools/page.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { RiskPoolsConsole } from "@/modules/risk/risk-pools-console";
|
||||
|
||||
export default async function AdminDrawRiskPoolsPage(props: {
|
||||
params: Promise<{ drawId: string }>;
|
||||
}) {
|
||||
const { drawId } = await props.params;
|
||||
const id = Number(drawId);
|
||||
|
||||
return (
|
||||
<RiskPoolsConsole
|
||||
drawId={id}
|
||||
title="全部风险池"
|
||||
soldOutOnly={false}
|
||||
defaultSort="number_asc"
|
||||
allowSortChange
|
||||
/>
|
||||
);
|
||||
}
|
||||
17
src/app/admin/(shell)/draws/[drawId]/risk/sold-out/page.tsx
Normal file
17
src/app/admin/(shell)/draws/[drawId]/risk/sold-out/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { RiskPoolsConsole } from "@/modules/risk/risk-pools-console";
|
||||
|
||||
export default async function AdminDrawRiskSoldOutPage(props: {
|
||||
params: Promise<{ drawId: string }>;
|
||||
}) {
|
||||
const { drawId } = await props.params;
|
||||
const id = Number(drawId);
|
||||
|
||||
return (
|
||||
<RiskPoolsConsole
|
||||
drawId={id}
|
||||
title="售罄号码列表"
|
||||
soldOutOnly
|
||||
defaultSort="number_asc"
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user