feat(reports, risk, deployment): 支持开注商经营报表、风险池按开注商操作并调整 PM2 部署目录
Some checks failed
lotteryadmin CI / build (push) Has been cancelled

This commit is contained in:
2026-07-10 10:23:46 +08:00
parent 1164d9d728
commit d6826d5a1c
22 changed files with 147 additions and 33 deletions

View File

@@ -1,6 +1,7 @@
import type { LucideIcon } from "lucide-react";
import {
CalendarDays,
Building2,
FileSpreadsheet,
ListFilter,
ShieldAlert,
@@ -44,6 +45,7 @@ export type ReportKey =
| "player_transfer"
| "hot_number_risk"
| "play_dimension"
| "provider_profit"
| "sold_out_number"
| "admin_audit";
@@ -60,6 +62,15 @@ export type ReportDefinition = {
const PRD_REPORTS_VIEW_ACCESS_ANY = [PRD_REPORT_VIEW] as const;
export const REPORT_DEFINITIONS: ReportDefinition[] = [
{
key: "provider_profit",
category: "profit",
icon: Building2,
filterKind: "date",
fields: ["period"],
connected: true,
requiredAny: PRD_REPORTS_VIEW_ACCESS_ANY,
},
{
key: "draw_profit",
category: "profit",
@@ -138,4 +149,4 @@ export const CATEGORY_SHORTCUT_HREF: Partial<Record<ReportCategory, string>> = {
wallet: "/admin/wallet/transfer-orders",
risk: "/admin/risk",
audit: "/admin/audit-logs",
};
};