diff --git a/web/src/api/backend/user/moneyLog.ts b/web/src/api/backend/user/moneyLog.ts index ca64230..84c0469 100644 --- a/web/src/api/backend/user/moneyLog.ts +++ b/web/src/api/backend/user/moneyLog.ts @@ -20,7 +20,7 @@ export function logHistory(params: { id: number | string }) { }) } -export function annualReport(params: { id: number | string }) { +export function annualReport(params: { year: number | string }) { return createAxios({ url: url + 'annualReport', method: 'get', diff --git a/web/src/lang/autoload.ts b/web/src/lang/autoload.ts index af5d708..af4d894 100644 --- a/web/src/lang/autoload.ts +++ b/web/src/lang/autoload.ts @@ -9,6 +9,7 @@ export default { '/': ['./frontend/${lang}/index.ts'], [adminBaseRoutePath + '/moduleStore']: ['./backend/${lang}/module.ts'], [adminBaseRoutePath + '/user/rule']: ['./backend/${lang}/auth/rule.ts'], + [adminBaseRoutePath + '/user/moneyLog/annualReport']: ['./backend/${lang}/user/moneyLog.ts'], [adminBaseRoutePath + '/user/scoreLog']: ['./backend/${lang}/user/moneyLog.ts'], [adminBaseRoutePath + '/crud/crud']: ['./backend/${lang}/crud/log.ts', './backend/${lang}/crud/state.ts'], } diff --git a/web/src/lang/backend/en/user/moneyLog.ts b/web/src/lang/backend/en/user/moneyLog.ts index 24f1007..444de24 100644 --- a/web/src/lang/backend/en/user/moneyLog.ts +++ b/web/src/lang/backend/en/user/moneyLog.ts @@ -30,4 +30,33 @@ export default { 1004 : 'Plinko Ball' }, 'bank_id': 'Bank Account', + annualReport: { + title: 'ANNUAL REPORT', + year: 'YEAR', + deposit: 'DEPOSIT', + withdraw: 'WITHDRAW', + transactionDeposit: 'TRANSACTION (DEPOSIT)', + transactionWithdraw: 'TRANSACTION (WITHDRAW)', + activePlayer: 'ACTIVE PLAYER', + firstDeposit: 'FIRST DEPOSIT', + unclaimReceipt: 'UNCLAIM RECEIPT', + unclaimAmount: 'UNCLAIM AMOUNT', + depositWithdraw: 'Deposit & Withdraw', + transactionActive: 'Transaction & Active', + download: 'Download', + months: { + jan: 'JAN', + feb: 'FEB', + mar: 'MAR', + apr: 'APR', + may: 'MAY', + jun: 'JUN', + jul: 'JUL', + aug: 'AUG', + sep: 'SEP', + oct: 'OCT', + nov: 'NOV', + dec: 'DEC', + }, + }, } diff --git a/web/src/lang/backend/zh-cn/user/moneyLog.ts b/web/src/lang/backend/zh-cn/user/moneyLog.ts index e7d1a52..39a7124 100644 --- a/web/src/lang/backend/zh-cn/user/moneyLog.ts +++ b/web/src/lang/backend/zh-cn/user/moneyLog.ts @@ -30,4 +30,33 @@ export default { 1004 : 'Plinko Ball' }, 'bank_id': '银行账户', + annualReport: { + title: '年度报表', + year: '全年', + deposit: '存款', + withdraw: '提款', + transactionDeposit: '交易(存款)', + transactionWithdraw: '交易(提款)', + activePlayer: '活跃玩家', + firstDeposit: '首次存款', + unclaimReceipt: '未认领收据', + unclaimAmount: '未认领金额', + depositWithdraw: '存款与提款', + transactionActive: '交易与活跃玩家', + download: '下载', + months: { + jan: '一月', + feb: '二月', + mar: '三月', + apr: '四月', + may: '五月', + jun: '六月', + jul: '七月', + aug: '八月', + sep: '九月', + oct: '十月', + nov: '十一月', + dec: '十二月', + }, + }, } diff --git a/web/src/views/backend/user/moneyLog/annualReport.vue b/web/src/views/backend/user/moneyLog/annualReport.vue index b19d7b7..6fe841c 100644 --- a/web/src/views/backend/user/moneyLog/annualReport.vue +++ b/web/src/views/backend/user/moneyLog/annualReport.vue @@ -1,282 +1,410 @@ - +