[游戏管理]压注订单
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.betOrder.quick Search Fields') })"
|
||||
:quick-search-placeholder="t('Quick search placeholder', { fields: t('order.betOrder.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/betOrder',
|
||||
name: 'order/betOrder',
|
||||
})
|
||||
|
||||
const { t } = useI18n()
|
||||
@@ -53,14 +53,14 @@ function formatAmount(_row: anyObj, _column: any, cellValue: unknown) {
|
||||
}
|
||||
|
||||
const baTable = new baTableClass(
|
||||
new baTableApi('/admin/game.BetOrder/'),
|
||||
new baTableApi('/admin/order.BetOrder/'),
|
||||
{
|
||||
pk: 'id',
|
||||
column: [
|
||||
{ label: t('game.betOrder.id'), prop: 'id', align: 'center', width: 100, operator: 'RANGE', sortable: 'custom' },
|
||||
{ label: t('game.betOrder.period_id'), prop: 'period_id', align: 'center', width: 100, operator: 'RANGE' },
|
||||
{ label: t('order.betOrder.id'), prop: 'id', align: 'center', width: 100, operator: 'RANGE', sortable: 'custom' },
|
||||
{ label: t('order.betOrder.period_id'), prop: 'period_id', align: 'center', width: 100, operator: 'RANGE' },
|
||||
{
|
||||
label: t('game.betOrder.period_no'),
|
||||
label: t('order.betOrder.period_no'),
|
||||
prop: 'period_no',
|
||||
align: 'center',
|
||||
minWidth: 160,
|
||||
@@ -68,7 +68,7 @@ const baTable = new baTableClass(
|
||||
operator: 'LIKE',
|
||||
},
|
||||
{
|
||||
label: t('game.betOrder.gamePeriod.period_no'),
|
||||
label: t('order.betOrder.gamePeriod_period_no'),
|
||||
prop: 'gamePeriod.period_no',
|
||||
align: 'center',
|
||||
minWidth: 160,
|
||||
@@ -77,25 +77,25 @@ const baTable = new baTableClass(
|
||||
render: 'tags',
|
||||
},
|
||||
{
|
||||
label: t('game.betOrder.gamePeriod.status'),
|
||||
label: t('order.betOrder.gamePeriod_status'),
|
||||
prop: 'gamePeriod.status',
|
||||
align: 'center',
|
||||
width: 100,
|
||||
operator: 'eq',
|
||||
render: 'tag',
|
||||
replaceValue: {
|
||||
'0': t('game.period.status 0'),
|
||||
'1': t('game.period.status 1'),
|
||||
'2': t('game.period.status 2'),
|
||||
'3': t('game.period.status 3'),
|
||||
'4': t('game.period.status 4'),
|
||||
'5': t('game.period.status 5'),
|
||||
'0': '下注开放',
|
||||
'1': '已封盘',
|
||||
'2': '算票中',
|
||||
'3': '派彩中',
|
||||
'4': '已结束',
|
||||
'5': '已作废',
|
||||
},
|
||||
},
|
||||
{ label: t('game.betOrder.user_id'), prop: 'user_id', align: 'center', width: 90, operator: 'RANGE' },
|
||||
{ label: t('order.betOrder.user_id'), prop: 'user_id', align: 'center', width: 90, operator: 'RANGE' },
|
||||
{
|
||||
label: t('game.betOrder.gameUser.username'),
|
||||
prop: 'gameUser.username',
|
||||
label: t('order.betOrder.user_username'),
|
||||
prop: 'user.username',
|
||||
align: 'center',
|
||||
minWidth: 100,
|
||||
operatorPlaceholder: t('Fuzzy query'),
|
||||
@@ -103,7 +103,7 @@ const baTable = new baTableClass(
|
||||
render: 'tags',
|
||||
},
|
||||
{
|
||||
label: t('game.betOrder.channel.name'),
|
||||
label: t('order.betOrder.channel_name'),
|
||||
prop: 'channel.name',
|
||||
align: 'center',
|
||||
minWidth: 100,
|
||||
@@ -112,7 +112,7 @@ const baTable = new baTableClass(
|
||||
render: 'tags',
|
||||
},
|
||||
{
|
||||
label: t('game.betOrder.pick_numbers'),
|
||||
label: t('order.betOrder.pick_numbers'),
|
||||
prop: 'pick_numbers',
|
||||
align: 'center',
|
||||
minWidth: 120,
|
||||
@@ -120,37 +120,37 @@ const baTable = new baTableClass(
|
||||
formatter: formatPickNumbers,
|
||||
},
|
||||
{
|
||||
label: t('game.betOrder.unit_amount'),
|
||||
label: t('order.betOrder.unit_amount'),
|
||||
prop: 'unit_amount',
|
||||
align: 'center',
|
||||
minWidth: 110,
|
||||
operator: 'RANGE',
|
||||
formatter: formatAmount,
|
||||
},
|
||||
{ label: t('game.betOrder.pick_count'), prop: 'pick_count', align: 'center', width: 90, operator: 'RANGE' },
|
||||
{ label: t('order.betOrder.pick_count'), prop: 'pick_count', align: 'center', width: 90, operator: 'RANGE' },
|
||||
{
|
||||
label: t('game.betOrder.total_amount'),
|
||||
label: t('order.betOrder.total_amount'),
|
||||
prop: 'total_amount',
|
||||
align: 'center',
|
||||
minWidth: 110,
|
||||
operator: 'RANGE',
|
||||
formatter: formatAmount,
|
||||
},
|
||||
{ label: t('game.betOrder.streak_at_bet'), prop: 'streak_at_bet', align: 'center', width: 110, operator: 'RANGE' },
|
||||
{ label: t('order.betOrder.streak_at_bet'), prop: 'streak_at_bet', align: 'center', width: 110, operator: 'RANGE' },
|
||||
{
|
||||
label: t('game.betOrder.is_auto'),
|
||||
label: t('order.betOrder.is_auto'),
|
||||
prop: 'is_auto',
|
||||
align: 'center',
|
||||
width: 90,
|
||||
operator: 'eq',
|
||||
render: 'tag',
|
||||
replaceValue: {
|
||||
'0': t('game.betOrder.is_auto 0'),
|
||||
'1': t('game.betOrder.is_auto 1'),
|
||||
'0': t('order.betOrder.is_auto 0'),
|
||||
'1': t('order.betOrder.is_auto 1'),
|
||||
},
|
||||
},
|
||||
{
|
||||
label: t('game.betOrder.win_amount'),
|
||||
label: t('order.betOrder.win_amount'),
|
||||
prop: 'win_amount',
|
||||
align: 'center',
|
||||
minWidth: 110,
|
||||
@@ -158,7 +158,7 @@ const baTable = new baTableClass(
|
||||
formatter: formatAmount,
|
||||
},
|
||||
{
|
||||
label: t('game.betOrder.jackpot_extra_amount'),
|
||||
label: t('order.betOrder.jackpot_extra_amount'),
|
||||
prop: 'jackpot_extra_amount',
|
||||
align: 'center',
|
||||
minWidth: 120,
|
||||
@@ -166,20 +166,20 @@ const baTable = new baTableClass(
|
||||
formatter: formatAmount,
|
||||
},
|
||||
{
|
||||
label: t('game.betOrder.status'),
|
||||
label: t('order.betOrder.status'),
|
||||
prop: 'status',
|
||||
align: 'center',
|
||||
width: 100,
|
||||
operator: 'eq',
|
||||
render: 'tag',
|
||||
replaceValue: {
|
||||
'1': t('game.betOrder.status 1'),
|
||||
'2': t('game.betOrder.status 2'),
|
||||
'3': t('game.betOrder.status 3'),
|
||||
'1': t('order.betOrder.status 1'),
|
||||
'2': t('order.betOrder.status 2'),
|
||||
'3': t('order.betOrder.status 3'),
|
||||
},
|
||||
},
|
||||
{
|
||||
label: t('game.betOrder.idempotency_key'),
|
||||
label: t('order.betOrder.idempotency_key'),
|
||||
prop: 'idempotency_key',
|
||||
align: 'center',
|
||||
minWidth: 140,
|
||||
@@ -188,7 +188,7 @@ const baTable = new baTableClass(
|
||||
showOverflowTooltip: true,
|
||||
},
|
||||
{
|
||||
label: t('game.betOrder.create_time'),
|
||||
label: t('order.betOrder.create_time'),
|
||||
prop: 'create_time',
|
||||
align: 'center',
|
||||
render: 'datetime',
|
||||
@@ -199,7 +199,7 @@ const baTable = new baTableClass(
|
||||
timeFormat: 'yyyy-mm-dd hh:MM:ss',
|
||||
},
|
||||
{
|
||||
label: t('game.betOrder.update_time'),
|
||||
label: t('order.betOrder.update_time'),
|
||||
prop: 'update_time',
|
||||
align: 'center',
|
||||
render: 'datetime',
|
||||
@@ -228,3 +228,6 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user