This commit is contained in:
zhx 2026-05-18 22:01:56 +08:00
parent 2dcd19a3ff
commit cf291546de
2 changed files with 7 additions and 0 deletions

View File

@ -37,6 +37,7 @@ export interface CountryDashboardMetric {
periodKey: string; periodKey: string;
periodName: string; periodName: string;
salaryExchange: number | string; salaryExchange: number | string;
salaryTransfer: number | string;
totalRecharge: number | string; totalRecharge: number | string;
} }

View File

@ -198,6 +198,7 @@ const metricColumns = new Set([
'mifapayRecharge', 'mifapayRecharge',
'newUserRecharge', 'newUserRecharge',
'salaryExchange', 'salaryExchange',
'salaryTransfer',
'totalRecharge', 'totalRecharge',
]); ]);
@ -227,6 +228,7 @@ const summaryMetricKeys = [
'mifapayRecharge', 'mifapayRecharge',
'googleRecharge', 'googleRecharge',
'salaryExchange', 'salaryExchange',
'salaryTransfer',
'totalRecharge', 'totalRecharge',
'giftConsume', 'giftConsume',
'luckyGiftTotalFlow', 'luckyGiftTotalFlow',
@ -253,6 +255,7 @@ const summaryMetricDefinitions = [
{ key: 'mifapayRecharge', label: 'MifaPay 充值' }, { key: 'mifapayRecharge', label: 'MifaPay 充值' },
{ key: 'googleRecharge', label: 'Google 充值' }, { key: 'googleRecharge', label: 'Google 充值' },
{ key: 'salaryExchange', label: '工资兑换' }, { key: 'salaryExchange', label: '工资兑换' },
{ key: 'salaryTransfer', label: '工资转移' },
{ key: 'totalRecharge', label: '总充值' }, { key: 'totalRecharge', label: '总充值' },
{ key: 'giftConsume', label: '礼物消耗' }, { key: 'giftConsume', label: '礼物消耗' },
{ key: 'luckyGiftTotalFlow', label: '幸运礼物流水' }, { key: 'luckyGiftTotalFlow', label: '幸运礼物流水' },
@ -301,6 +304,7 @@ const overviewColumns: any[] = [
{ align: 'right', dataIndex: 'mifapayRecharge', key: 'mifapayRecharge', title: 'MifaPay 充值', width: 150 }, { align: 'right', dataIndex: 'mifapayRecharge', key: 'mifapayRecharge', title: 'MifaPay 充值', width: 150 },
{ align: 'right', dataIndex: 'googleRecharge', key: 'googleRecharge', title: 'Google 充值', width: 140 }, { align: 'right', dataIndex: 'googleRecharge', key: 'googleRecharge', title: 'Google 充值', width: 140 },
{ align: 'right', dataIndex: 'salaryExchange', key: 'salaryExchange', title: '工资兑换', width: 130 }, { align: 'right', dataIndex: 'salaryExchange', key: 'salaryExchange', title: '工资兑换', width: 130 },
{ align: 'right', dataIndex: 'salaryTransfer', key: 'salaryTransfer', title: '工资转移', width: 130 },
{ align: 'right', dataIndex: 'totalRecharge', key: 'totalRecharge', title: '总充值', width: 130 }, { align: 'right', dataIndex: 'totalRecharge', key: 'totalRecharge', title: '总充值', width: 130 },
{ align: 'right', dataIndex: 'giftConsume', key: 'giftConsume', title: '礼物消耗', width: 130 }, { align: 'right', dataIndex: 'giftConsume', key: 'giftConsume', title: '礼物消耗', width: 130 },
{ align: 'right', dataIndex: 'luckyGiftTotalFlow', key: 'luckyGiftTotalFlow', title: '幸运礼物流水', width: 150 }, { align: 'right', dataIndex: 'luckyGiftTotalFlow', key: 'luckyGiftTotalFlow', title: '幸运礼物流水', width: 150 },
@ -893,6 +897,7 @@ function emptySummary(): SummaryMetric {
mifapayRecharge: 0, mifapayRecharge: 0,
newUserRecharge: 0, newUserRecharge: 0,
salaryExchange: 0, salaryExchange: 0,
salaryTransfer: 0,
totalRecharge: 0, totalRecharge: 0,
}; };
} }
@ -1109,6 +1114,7 @@ async function renderVisualCharts() {
amountSeries('MifaPay 充值', 'mifapayRecharge', list), amountSeries('MifaPay 充值', 'mifapayRecharge', list),
amountSeries('Google 充值', 'googleRecharge', list), amountSeries('Google 充值', 'googleRecharge', list),
amountSeries('工资兑换', 'salaryExchange', list), amountSeries('工资兑换', 'salaryExchange', list),
amountSeries('工资转移', 'salaryTransfer', list),
amountSeries('总充值', 'totalRecharge', list), amountSeries('总充值', 'totalRecharge', list),
])); ]));
renderFlowChart(baseChartOption('核心流水', list, [ renderFlowChart(baseChartOption('核心流水', list, [