feat: 统一管理端多语言、配置与票据/结算页面重构
This commit is contained in:
@@ -95,8 +95,19 @@ export function JackpotRecordsConsole() {
|
||||
setCPage(1);
|
||||
};
|
||||
|
||||
const triggerTypeText = (value: string) => {
|
||||
const key = `triggerTypes.${value}`;
|
||||
const translated = t(key);
|
||||
return translated === key ? value : translated;
|
||||
};
|
||||
|
||||
return (
|
||||
<ModuleScaffold>
|
||||
<div className="mb-6">
|
||||
<h1 className="text-lg font-semibold tracking-tight">{t("recordsPage.title")}</h1>
|
||||
<p className="mt-1 text-sm text-muted-foreground">{t("recordsPage.description")}</p>
|
||||
</div>
|
||||
|
||||
<Card className="mb-6">
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-base">{t("filter")}</CardTitle>
|
||||
@@ -132,14 +143,14 @@ export function JackpotRecordsConsole() {
|
||||
<div className="admin-table-toolbar">
|
||||
<AdminTableExportButton
|
||||
tableId="jackpot-payout-table"
|
||||
filename="Jackpot派彩记录"
|
||||
sheetName="Jackpot派彩"
|
||||
filename="奖池派彩记录"
|
||||
sheetName="奖池派彩"
|
||||
/>
|
||||
</div>
|
||||
<Table id="jackpot-payout-table">
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
<TableHead>ID</TableHead>
|
||||
<TableHead>{t("table.id", { ns: "common" })}</TableHead>
|
||||
<TableHead>{t("drawNo")}</TableHead>
|
||||
<TableHead>{t("trigger")}</TableHead>
|
||||
<TableHead className="text-right">{t("payoutAmount")}</TableHead>
|
||||
@@ -152,7 +163,7 @@ export function JackpotRecordsConsole() {
|
||||
<TableRow key={r.id}>
|
||||
<TableCell className="font-mono text-xs">{r.id}</TableCell>
|
||||
<TableCell className="font-mono text-xs">{r.draw_no ?? "—"}</TableCell>
|
||||
<TableCell className="text-xs">{r.trigger_type}</TableCell>
|
||||
<TableCell className="text-xs">{triggerTypeText(r.trigger_type)}</TableCell>
|
||||
<TableCell className="text-right font-mono text-xs tabular-nums">
|
||||
{formatAdminMinorUnits(r.total_payout_amount, r.currency_code ?? "NPR")}
|
||||
</TableCell>
|
||||
@@ -196,14 +207,14 @@ export function JackpotRecordsConsole() {
|
||||
<div className="admin-table-toolbar">
|
||||
<AdminTableExportButton
|
||||
tableId="jackpot-contribution-table"
|
||||
filename="Jackpot注入记录"
|
||||
sheetName="Jackpot注入"
|
||||
filename="奖池注入记录"
|
||||
sheetName="奖池注入"
|
||||
/>
|
||||
</div>
|
||||
<Table id="jackpot-contribution-table">
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
<TableHead>ID</TableHead>
|
||||
<TableHead>{t("table.id", { ns: "common" })}</TableHead>
|
||||
<TableHead>{t("drawNo")}</TableHead>
|
||||
<TableHead>{t("ticketNo")}</TableHead>
|
||||
<TableHead>{t("player")}</TableHead>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const jackpotModuleMeta = {
|
||||
title: "Jackpot",
|
||||
title: "奖池记录",
|
||||
description: "",
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user