|
|
@@ -0,0 +1,80 @@
|
|
|
+<script setup>
|
|
|
+import {Page} from "@vben/common-ui";
|
|
|
+import dayjs from "dayjs";
|
|
|
+import {useVbenForm} from "#/adapter/form.js";
|
|
|
+import {$t} from "@vben/locales";
|
|
|
+import {useVbenVxeGrid} from "#/adapter/vxe-table.js";
|
|
|
+import {Avatar, Card, Input, InputGroup, Select, SelectOption, Tag} from "ant-design-vue";
|
|
|
+import {getHistoryAgentList} from "#/api/data_statistics/history_agent.js";
|
|
|
+
|
|
|
+// 列表
|
|
|
+const gridOptions = {
|
|
|
+ border: true,
|
|
|
+ stripe: true,
|
|
|
+ scrollbarConfig: {
|
|
|
+ x: {
|
|
|
+ visible: 'visible'
|
|
|
+ },
|
|
|
+ y: {
|
|
|
+ visible: 'auto'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ columns: [
|
|
|
+ { fixed: 'left', title: $t('common.serial'), type: 'seq', width: 50},
|
|
|
+ { field: 'rtp', title: $t('data_statistics.daily_agent.rtp'), width: 160, titlePrefix: {'content':$t('data_statistics.daily_agent.rtp_desc')}},
|
|
|
+ { field: 'bet_count', title: $t('data_statistics.daily_agent.bet_count'), width: 160, titlePrefix: {'content':$t('data_statistics.daily_agent.bet_count_desc')}},
|
|
|
+ { field: 'bet_amount', title: $t('data_statistics.daily_agent.bet_amount'), width: 160, titlePrefix: {'content':$t('data_statistics.daily_agent.bet_amount_desc')}},
|
|
|
+ { field: 'game_profit', title: $t('data_statistics.daily_agent.game_profit'), width:160, titlePrefix: {'content':$t('data_statistics.daily_agent.game_profit_desc')}, slots:{'default':'game_profit'}},
|
|
|
+ { field: 'login_users', title: $t('data_statistics.daily_agent.login_users'), width: 160, titlePrefix: {'content':$t('data_statistics.daily_agent.login_users_desc')}},
|
|
|
+ { field: 'register_users', title: $t('data_statistics.daily_agent.register_users'), width: 160, titlePrefix: {'content':$t('data_statistics.daily_agent.register_users_desc')}},
|
|
|
+ { field: 'bet_users', title: $t('data_statistics.daily_agent.bet_users'), width: 160, titlePrefix: {'content':$t('data_statistics.daily_agent.bet_users_desc')}},
|
|
|
+ { field: 'commission_amount', title: $t('data_statistics.daily_agent.commission_amount'), width: 160, titlePrefix: {'content':$t('data_statistics.daily_agent.commission_amount_desc')}},
|
|
|
+ { field: 'buy_free_bet', title: $t('data_statistics.daily_agent.buy_free_bet'), width: 160, titlePrefix: {'content':$t('data_statistics.daily_agent.buy_free_bet_desc')}},
|
|
|
+ // { field: 'platform_fee', title: $t('data_statistics.daily_agent.platform_fee'), width: 160, titlePrefix: {'content':$t('data_statistics.daily_agent.platform_fee_desc')}},
|
|
|
+ ],
|
|
|
+ keepSource: true,
|
|
|
+ proxyConfig: {
|
|
|
+ ajax: {
|
|
|
+ query: async ({ page }) => {
|
|
|
+ const list = await getHistoryAgentList();
|
|
|
+ return {
|
|
|
+ total: list.total,
|
|
|
+ items: list.list
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ rowConfig: {
|
|
|
+ isHover: true,
|
|
|
+ },
|
|
|
+ toolbarConfig: {
|
|
|
+ custom: true,
|
|
|
+ export: true,
|
|
|
+ // import: true,
|
|
|
+ refresh: true,
|
|
|
+ zoom: true,
|
|
|
+ },
|
|
|
+};
|
|
|
+const [Grid, gridApi] = useVbenVxeGrid({
|
|
|
+ gridOptions,
|
|
|
+});
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <Page>
|
|
|
+ <Card>
|
|
|
+ <div class="vp-raw w-full">
|
|
|
+ <Grid>
|
|
|
+ <template #game_profit="{ row }">
|
|
|
+ <span style="color:green" v-if="row.game_profit >= 0">{{row.game_profit}}</span>
|
|
|
+ <span style="color:red" v-else>{{row.game_profit}}</span>
|
|
|
+ </template>
|
|
|
+ </Grid>
|
|
|
+ </div>
|
|
|
+ </Card>
|
|
|
+ </Page>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+
|
|
|
+</style>
|