mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 17:09:19 +08:00
feat: 公司概览 Dashboard 添加导出按钮
- company-overview/apis.ts 新增导出 API - Dashboard 页面导出按钮绑定事件,支持当前日期范围导出 - 复用已有 exportByPost 工具函数
This commit is contained in:
@@ -15,3 +15,16 @@ export async function getCompanyOverviewApi(data: CompanyOverviewDTO.Query) {
|
||||
data,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出公司概览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