增加每日推送的导出和排序

This commit is contained in:
2026-07-21 15:46:01 +08:00
parent a0056ff15b
commit 5aad851108
4 changed files with 119 additions and 6 deletions

View File

@@ -6,20 +6,31 @@
<TableHeader
:buttons="['refresh', 'comSearch', 'quickSearch', 'columnDisplay']"
:quick-search-placeholder="t('Quick search placeholder', { fields: t('mall.dailyPush.quick Search Fields') })"
></TableHeader>
>
<template #refreshAppend>
<el-tooltip v-if="baTable.auth('export')" :content="t('mall.dailyPush.export_excel')" placement="top">
<el-button v-blur class="table-header-operate btns-ml-12" type="success" @click="exportVisible = true">
<Icon name="fa fa-file-excel-o" />
<span class="table-header-operate-text">{{ t('mall.dailyPush.export_excel') }}</span>
</el-button>
</el-tooltip>
</template>
</TableHeader>
<Table ref="tableRef"></Table>
<ExportDialog v-model="exportVisible" />
</div>
</template>
<script setup lang="ts">
import { onMounted, provide, useTemplateRef } from 'vue'
import { onMounted, provide, ref, useTemplateRef } from 'vue'
import { useI18n } from 'vue-i18n'
import { baTableApi } from '/@/api/common'
import MallPageIntro from '/@/components/mall/MallPageIntro.vue'
import TableHeader from '/@/components/table/header/index.vue'
import Table from '/@/components/table/index.vue'
import baTableClass from '/@/utils/baTable'
import ExportDialog from './exportDialog.vue'
defineOptions({
name: 'mall/dailyPush',
@@ -27,6 +38,7 @@ defineOptions({
const { t } = useI18n()
const tableRef = useTemplateRef('tableRef')
const exportVisible = ref(false)
const baTable = new baTableClass(
new baTableApi('/admin/mall.DailyPush/'),
@@ -67,21 +79,21 @@ const baTable = new baTableClass(
prop: 'yesterday_win_loss_net',
align: 'center',
operator: 'RANGE',
sortable: false,
sortable: 'custom',
},
{
label: t('mall.dailyPush.yesterday_total_deposit'),
prop: 'yesterday_total_deposit',
align: 'center',
operator: 'RANGE',
sortable: false,
sortable: 'custom',
},
{
label: t('mall.dailyPush.lifetime_total_deposit'),
prop: 'lifetime_total_deposit',
align: 'center',
operator: 'RANGE',
sortable: false,
sortable: 'custom',
},
{
label: t('mall.dailyPush.lifetime_total_withdraw'),
@@ -89,7 +101,7 @@ const baTable = new baTableClass(
align: 'center',
minWidth: 95,
operator: 'RANGE',
sortable: false,
sortable: 'custom',
},
{
label: t('mall.dailyPush.create_time'),