feat(admin+api): 列表页子路由重构、结算历史与充值截图清理

赛事/代理管理从表格展开改为子路由详情页;结算页增加预览弹窗与历史记录;媒体库支持截图存储统计与自动/手动清理;Player 端充值截图压缩为 WebP 300KB。
This commit is contained in:
2026-06-22 12:28:25 +08:00
parent 499522f3fb
commit 648c314e23
38 changed files with 3298 additions and 1147 deletions

View File

@@ -0,0 +1,24 @@
import type { InjectionKey, Ref } from 'vue';
import type { PlayerRow } from '../views/user-form';
export type AgentPlayerActions = {
canCreatePlayer: boolean;
openCreatePlayer: (parentAgentUserId: string) => void;
openDetailPlayer: (id: string) => void;
openEditPlayer: (id: string) => void;
openTransfer: (type: 'deposit' | 'withdraw', row: { id: string; username?: string }) => void;
toggleFreezePlayer: (row: PlayerRow) => void | Promise<void>;
deletePlayer: (row: PlayerRow) => void | Promise<void>;
openPlayerWalletLedger: (playerId: string, playerUsername?: string | null) => void;
playerActionFlags: {
showEdit: boolean;
showDeposit: boolean;
showWithdraw: boolean;
showFreeze: boolean;
showDelete: boolean;
};
};
export const agentPlayerActionsKey: InjectionKey<AgentPlayerActions> = Symbol('agentPlayerActions');
export const agentDirectPlayersReloadKey: InjectionKey<Ref<(() => void) | null>> =
Symbol('agentDirectPlayersReload');