[游戏管理]玩家钱包流水
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
<TableHeader
|
||||
:buttons="['refresh', 'comSearch', 'quickSearch', 'columnDisplay']"
|
||||
:quick-search-placeholder="t('Quick search placeholder', { fields: t('game.walletRecord.quick Search Fields') })"
|
||||
:quick-search-placeholder="t('Quick search placeholder', { fields: t('record.userWalletRecord.quick Search Fields') })"
|
||||
></TableHeader>
|
||||
|
||||
<Table ref="tableRef"></Table>
|
||||
@@ -20,7 +20,7 @@ import Table from '/@/components/table/index.vue'
|
||||
import baTableClass from '/@/utils/baTable'
|
||||
|
||||
defineOptions({
|
||||
name: 'game/walletRecord',
|
||||
name: 'record/userWalletRecord',
|
||||
})
|
||||
|
||||
const { t } = useI18n()
|
||||
@@ -39,34 +39,34 @@ function formatAmount(_row: anyObj, _column: any, cellValue: unknown) {
|
||||
}
|
||||
|
||||
const bizReplace = {
|
||||
deposit: t('game.walletRecord.biz deposit'),
|
||||
withdraw: t('game.walletRecord.biz withdraw'),
|
||||
withdraw_freeze: t('game.walletRecord.biz withdraw_freeze'),
|
||||
withdraw_unfreeze: t('game.walletRecord.biz withdraw_unfreeze'),
|
||||
platform_in: t('game.walletRecord.biz platform_in'),
|
||||
platform_out: t('game.walletRecord.biz platform_out'),
|
||||
admin_credit: t('game.walletRecord.biz admin_credit'),
|
||||
admin_deduct: t('game.walletRecord.biz admin_deduct'),
|
||||
bet: t('game.walletRecord.biz bet'),
|
||||
payout: t('game.walletRecord.biz payout'),
|
||||
fee: t('game.walletRecord.biz fee'),
|
||||
void_refund: t('game.walletRecord.biz void_refund'),
|
||||
adjust: t('game.walletRecord.biz adjust'),
|
||||
deposit: t('record.userWalletRecord.biz deposit'),
|
||||
withdraw: t('record.userWalletRecord.biz withdraw'),
|
||||
withdraw_freeze: t('record.userWalletRecord.biz withdraw_freeze'),
|
||||
withdraw_unfreeze: t('record.userWalletRecord.biz withdraw_unfreeze'),
|
||||
platform_in: t('record.userWalletRecord.biz platform_in'),
|
||||
platform_out: t('record.userWalletRecord.biz platform_out'),
|
||||
admin_credit: t('record.userWalletRecord.biz admin_credit'),
|
||||
admin_deduct: t('record.userWalletRecord.biz admin_deduct'),
|
||||
bet: t('record.userWalletRecord.biz bet'),
|
||||
payout: t('record.userWalletRecord.biz payout'),
|
||||
fee: t('record.userWalletRecord.biz fee'),
|
||||
void_refund: t('record.userWalletRecord.biz void_refund'),
|
||||
adjust: t('record.userWalletRecord.biz adjust'),
|
||||
}
|
||||
|
||||
const dirReplace = {
|
||||
'1': t('game.walletRecord.direction in'),
|
||||
'2': t('game.walletRecord.direction out'),
|
||||
'1': t('record.userWalletRecord.direction in'),
|
||||
'2': t('record.userWalletRecord.direction out'),
|
||||
}
|
||||
|
||||
const baTable = new baTableClass(
|
||||
new baTableApi('/admin/game.UserWalletRecord/'),
|
||||
new baTableApi('/admin/record.UserWalletRecord/'),
|
||||
{
|
||||
pk: 'id',
|
||||
column: [
|
||||
{ label: t('game.walletRecord.id'), prop: 'id', align: 'center', width: 100, operator: 'RANGE', sortable: 'custom' },
|
||||
{ label: t('record.userWalletRecord.id'), prop: 'id', align: 'center', width: 100, operator: 'RANGE', sortable: 'custom' },
|
||||
{
|
||||
label: t('game.walletRecord.user_id'),
|
||||
label: t('record.userWalletRecord.user_id'),
|
||||
prop: 'user_id',
|
||||
align: 'center',
|
||||
width: 90,
|
||||
@@ -74,8 +74,8 @@ const baTable = new baTableClass(
|
||||
sortable: false,
|
||||
},
|
||||
{
|
||||
label: t('game.walletRecord.game_user__username'),
|
||||
prop: 'gameUser.username',
|
||||
label: t('record.userWalletRecord.user__username'),
|
||||
prop: 'user.username',
|
||||
align: 'center',
|
||||
minWidth: 110,
|
||||
operatorPlaceholder: t('Fuzzy query'),
|
||||
@@ -84,7 +84,7 @@ const baTable = new baTableClass(
|
||||
comSearchRender: 'string',
|
||||
},
|
||||
{
|
||||
label: t('game.walletRecord.channel__name'),
|
||||
label: t('record.userWalletRecord.channel__name'),
|
||||
prop: 'channel.name',
|
||||
align: 'center',
|
||||
minWidth: 100,
|
||||
@@ -94,7 +94,7 @@ const baTable = new baTableClass(
|
||||
comSearchRender: 'string',
|
||||
},
|
||||
{
|
||||
label: t('game.walletRecord.biz_type'),
|
||||
label: t('record.userWalletRecord.biz_type'),
|
||||
prop: 'biz_type',
|
||||
align: 'center',
|
||||
minWidth: 120,
|
||||
@@ -103,7 +103,7 @@ const baTable = new baTableClass(
|
||||
replaceValue: bizReplace,
|
||||
},
|
||||
{
|
||||
label: t('game.walletRecord.direction'),
|
||||
label: t('record.userWalletRecord.direction'),
|
||||
prop: 'direction',
|
||||
align: 'center',
|
||||
width: 90,
|
||||
@@ -111,20 +111,20 @@ const baTable = new baTableClass(
|
||||
render: 'tag',
|
||||
replaceValue: dirReplace,
|
||||
},
|
||||
{ label: t('game.walletRecord.amount'), prop: 'amount', align: 'center', minWidth: 110, operator: 'RANGE', formatter: formatAmount },
|
||||
{ label: t('game.walletRecord.balance_before'), prop: 'balance_before', align: 'center', minWidth: 110, operator: 'RANGE', formatter: formatAmount },
|
||||
{ label: t('game.walletRecord.balance_after'), prop: 'balance_after', align: 'center', minWidth: 110, operator: 'RANGE', formatter: formatAmount },
|
||||
{ label: t('record.userWalletRecord.amount'), prop: 'amount', align: 'center', minWidth: 110, operator: 'RANGE', formatter: formatAmount },
|
||||
{ label: t('record.userWalletRecord.balance_before'), prop: 'balance_before', align: 'center', minWidth: 110, operator: 'RANGE', formatter: formatAmount },
|
||||
{ label: t('record.userWalletRecord.balance_after'), prop: 'balance_after', align: 'center', minWidth: 110, operator: 'RANGE', formatter: formatAmount },
|
||||
{
|
||||
label: t('game.walletRecord.ref_type'),
|
||||
label: t('record.userWalletRecord.ref_type'),
|
||||
prop: 'ref_type',
|
||||
align: 'center',
|
||||
minWidth: 100,
|
||||
showOverflowTooltip: true,
|
||||
operator: 'LIKE',
|
||||
},
|
||||
{ label: t('game.walletRecord.ref_id'), prop: 'ref_id', align: 'center', width: 100, operator: 'RANGE' },
|
||||
{ label: t('record.userWalletRecord.ref_id'), prop: 'ref_id', align: 'center', width: 100, operator: 'RANGE' },
|
||||
{
|
||||
label: t('game.walletRecord.idempotency_key'),
|
||||
label: t('record.userWalletRecord.idempotency_key'),
|
||||
prop: 'idempotency_key',
|
||||
align: 'center',
|
||||
minWidth: 120,
|
||||
@@ -132,7 +132,7 @@ const baTable = new baTableClass(
|
||||
operator: 'LIKE',
|
||||
},
|
||||
{
|
||||
label: t('game.walletRecord.operator_admin__username'),
|
||||
label: t('record.userWalletRecord.operator_admin__username'),
|
||||
prop: 'operatorAdmin.username',
|
||||
align: 'center',
|
||||
minWidth: 100,
|
||||
@@ -142,7 +142,7 @@ const baTable = new baTableClass(
|
||||
comSearchRender: 'string',
|
||||
},
|
||||
{
|
||||
label: t('game.walletRecord.remark'),
|
||||
label: t('record.userWalletRecord.remark'),
|
||||
prop: 'remark',
|
||||
align: 'center',
|
||||
minWidth: 140,
|
||||
@@ -150,7 +150,7 @@ const baTable = new baTableClass(
|
||||
operator: 'LIKE',
|
||||
},
|
||||
{
|
||||
label: t('game.walletRecord.create_time'),
|
||||
label: t('record.userWalletRecord.create_time'),
|
||||
prop: 'create_time',
|
||||
align: 'center',
|
||||
render: 'datetime',
|
||||
@@ -178,3 +178,5 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user