mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 05:09:19 +08:00
refactor(api): 全店概览导出接口路径统一为 RESTful 风格
- ExportController 路径改为 /ec/store-overview/export/{by-shop|by-category|by-platform}
- ExportFilenameUtils 新增 buildFullStoreOverviewXlsxName 方法
- ShopExportController 路径同步调整
- 前端 store-overview / shop apis 同步适配新接口路径
This commit is contained in:
@@ -71,9 +71,9 @@ const handleCategoryExport = async () => {
|
||||
}
|
||||
const [cStart, cEnd] = dateRange.value;
|
||||
await exportByPost(
|
||||
'/ec/category-overview/export',
|
||||
'/ec/store-overview/export/by-category',
|
||||
params,
|
||||
`品类概览_${cStart.format('YYYYMMDD')}-${cEnd.format('YYYYMMDD')}.xlsx`,
|
||||
`全店概览_按品类汇总_${cStart.format('YYYYMMDD')}-${cEnd.format('YYYYMMDD')}.xlsx`,
|
||||
);
|
||||
};
|
||||
|
||||
@@ -366,7 +366,7 @@ onActivated(async () => {
|
||||
await refreshOverviewByCurrentParams(true);
|
||||
});
|
||||
|
||||
// 导出公司概览
|
||||
// 全店概览-按店铺汇总导出
|
||||
const handleExportCompanyOverview = async () => {
|
||||
try {
|
||||
exportLoading.value = true;
|
||||
@@ -391,9 +391,9 @@ const handleExportCompanyOverview = async () => {
|
||||
: undefined;
|
||||
}
|
||||
|
||||
const filename = `公司概览_${startDate.format('YYYYMMDD')}-${endDate.format('YYYYMMDD')}.xlsx`;
|
||||
const filename = `全店概览_按店铺汇总_${startDate.format('YYYYMMDD')}-${endDate.format('YYYYMMDD')}.xlsx`;
|
||||
await exportByPost(
|
||||
'/ec/store-overview/export',
|
||||
'/ec/store-overview/export/by-shop',
|
||||
{
|
||||
dateRange: [
|
||||
startDate.format('YYYY-MM-DD'),
|
||||
@@ -427,14 +427,14 @@ const togglePlatformExportMode = (enabled: boolean) => {
|
||||
}
|
||||
};
|
||||
|
||||
// 导出平台维度汇总
|
||||
// 全店概览-按平台汇总导出
|
||||
const handlePlatformExport = async () => {
|
||||
try {
|
||||
exportLoading.value = true;
|
||||
const [startDate, endDate] = dateRange.value;
|
||||
const filename = `平台维度汇总_${startDate.format('YYYYMMDD')}-${endDate.format('YYYYMMDD')}.xlsx`;
|
||||
const filename = `全店概览_按平台汇总_${startDate.format('YYYYMMDD')}-${endDate.format('YYYYMMDD')}.xlsx`;
|
||||
await exportByPost(
|
||||
'/ec/platform-overview/export',
|
||||
'/ec/store-overview/export/by-platform',
|
||||
{
|
||||
dateRange: [
|
||||
startDate.format('YYYY-MM-DD'),
|
||||
|
||||
Reference in New Issue
Block a user