mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 08:29:19 +08:00
feat(frontend): 店铺概览页添加导出按钮
- 新增 exportByPost 通用导出工具(处理 blob 下载) - 店铺概览页导出按钮绑定事件,支持当前页面日期范围导出 - shop/apis.ts 新增导出 API 函数
This commit is contained in:
@@ -80,3 +80,29 @@ export async function getShopOverviewStatisticsApi(
|
||||
params,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出店铺概览Excel
|
||||
*/
|
||||
export async function exportShopOverviewApi(params: {
|
||||
shopId: number;
|
||||
dateRange: string[];
|
||||
exportType?: string;
|
||||
}) {
|
||||
return requestClient.post('/ec/shop/export-overview', params, {
|
||||
responseType: 'blob',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出公司概览Excel
|
||||
*/
|
||||
export async function exportCompanyOverviewApi(params: {
|
||||
dateRange: string[];
|
||||
shopIds?: number[];
|
||||
exportType?: string;
|
||||
}) {
|
||||
return requestClient.post('/ec/company-overview/export', params, {
|
||||
responseType: 'blob',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user