Browse Source

添加导出功能22

master
MoQingYu 3 months ago
parent
commit
ddcc7a14b6
  1. 4
      backmanage/src/api/module/statistics_big_recharge.ts
  2. 4
      backmanage/src/views/statistics/bigRecharge/index.vue
  3. 1
      backmanage/src/views/statistics/keep/index.vue

4
backmanage/src/api/module/statistics_big_recharge.ts

@ -11,4 +11,8 @@ export interface IStatisticsBigRecharge {
// 分页大R统计列表
export function fetchPageBigRecharges(payload: IStatisticsBigRecharge) {
return request.post<IStatisticsBigRecharge>("/order/fetch-page-big-recharges", payload);
}
// 导出大R统计列表
export function exportBigRecharges(payload: IStatisticsBigRecharge) {
return request.post("/order/export-big-recharges", payload, { responseType: 'blob' });
}

4
backmanage/src/views/statistics/bigRecharge/index.vue

@ -6,6 +6,7 @@
:columns="columns"
:table_config="table_config"
table_height="100%"
:show_form_other_btn="true"
>
<template #table_form_content="{ form_param }">
<el-form-item prop="userNo" label="用户ID">
@ -37,7 +38,7 @@ import { useRouter } from "vue-router";
import { isArray } from "lodash";
import moment from "moment";
import { IStatisticsBigRecharge, fetchPageBigRecharges } from "@/api/module/statistics_big_recharge";
import { IStatisticsBigRecharge, fetchPageBigRecharges, exportBigRecharges } from "@/api/module/statistics_big_recharge";
import { DEFAULT_TIME_FORMATTER } from "@/enum/formatter";
const $router = useRouter();
@ -83,6 +84,7 @@ const table_config: TableType<IStatisticsBigRecharge> = {
return params;
},
defaultValue: "-",
handleLoadDownloadData:exportBigRecharges,
};

1
backmanage/src/views/statistics/keep/index.vue

@ -7,6 +7,7 @@
:table_config="table_config"
table_height="400px"
:show_pagination="false"
:show_form_other_btn="true"
>
<template #table_form_content="{ form_param }">
<el-form-item prop="channelId" label="渠道包ID">

Loading…
Cancel
Save