mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 06:29:20 +08:00
refactor: company-overview 更名为 store-overview (全店概览)
- 目录 rename: company-overview → store-overview - API/views/router 同步更新路径 - 删除废弃组件和配置 - 修复 README 和 preferences 配置
This commit is contained in:
+1
-1
@@ -155,7 +155,7 @@ CREATE TABLE `sys_oper_log` (
|
||||
| `/ec/order` | `ecommerce/order/apis.ts` | ✅ |
|
||||
| `/ec/product` | `ecommerce/product/apis.ts` | ✅ |
|
||||
| `/ec/promotion-fee` | `ecommerce/promotion-fee/apis.ts` | ✅ |
|
||||
| `/ec/company-overview` | `ecommerce/company-overview/apis.ts` | ✅ |
|
||||
| `/ec/store-overview` | `ecommerce/store-overview/apis.ts` | ✅ |
|
||||
| `/company-permission` | `organization/company-permission/apis.ts` | ✅ |
|
||||
| `/position-permission` | `organization/position-permission/apis.ts` | ✅ |
|
||||
| `/position-menu` | — | ✅ 有前端引用但无独立 api 文件 |
|
||||
|
||||
@@ -71,8 +71,8 @@ ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/
|
||||
|
||||
| 模块 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| 公司概览 | POST /ec/company-overview/statistics | 全店铺汇总统计 |
|
||||
| 公司概览导出 | POST /ec/company-overview/export | Excel 导出 |
|
||||
| 公司概览 | POST /ec/store-overview/statistics | 全店铺汇总统计 |
|
||||
| 公司概览导出 | POST /ec/store-overview/export | Excel 导出 |
|
||||
| 店铺概览 | POST /ec/shop/overview-statistics | 单店铺统计 |
|
||||
| 店铺导出 | POST /ec/shop/export-overview | Excel 导出 |
|
||||
| 订单 | /ec/order/* | CRUD |
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ import top.xyquan.ecomdmbbackend.modules.ecom.overview.service.CompanyOverviewSe
|
||||
*/
|
||||
@Tag(name = "电商-全店铺概览", description = "全店铺概览统计接口")
|
||||
@RestController
|
||||
@RequestMapping("/ec/company-overview")
|
||||
@RequestMapping("/ec/store-overview")
|
||||
public class CompanyOverviewController {
|
||||
|
||||
private final CompanyOverviewService companyOverviewService;
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ public class ExportController {
|
||||
}
|
||||
|
||||
@Operation(summary = "导出公司概览Excel", description = "导出全店铺概览数据为Excel文件")
|
||||
@PostMapping("/company-overview/export")
|
||||
@PostMapping("/store-overview/export")
|
||||
@RequirePermission(value = "data:export", description = "导出公司概览", allowSuper = true)
|
||||
public void exportCompanyOverview(@Valid @RequestBody CompanyExportDTO dto, HttpServletResponse response) {
|
||||
byte[] data = exportService.exportCompanyOverview(dto);
|
||||
|
||||
@@ -102,7 +102,7 @@ export async function exportCompanyOverviewApi(params: {
|
||||
shopIds?: number[];
|
||||
exportType?: string;
|
||||
}) {
|
||||
return requestClient.post('/ec/company-overview/export', params, {
|
||||
return requestClient.post('/ec/store-overview/export', params, {
|
||||
responseType: 'blob',
|
||||
});
|
||||
}
|
||||
|
||||
+2
-2
@@ -11,7 +11,7 @@ import { requestClient } from '#/api/request';
|
||||
*/
|
||||
export async function getCompanyOverviewApi(data: CompanyOverviewDTO.Query) {
|
||||
return requestClient.post<CompanyOverviewVO.Info>(
|
||||
'/ec/company-overview/statistics',
|
||||
'/ec/store-overview/statistics',
|
||||
data,
|
||||
);
|
||||
}
|
||||
@@ -37,7 +37,7 @@ export async function exportCompanyOverviewApi(params: {
|
||||
shopIds?: number[];
|
||||
exportType?: string;
|
||||
}) {
|
||||
return requestClient.post('/ec/company-overview/export', params, {
|
||||
return requestClient.post('/ec/store-overview/export', params, {
|
||||
responseType: 'blob',
|
||||
});
|
||||
}
|
||||
@@ -14,12 +14,12 @@ const routes: RouteRecordRaw[] = [
|
||||
children: [
|
||||
{
|
||||
name: 'Analytics',
|
||||
path: '/company-overview',
|
||||
component: () => import('#/views/dashboard/company-overview/index.vue'),
|
||||
path: '/store-overview',
|
||||
component: () => import('#/views/dashboard/store-overview/index.vue'),
|
||||
meta: {
|
||||
affixTab: true,
|
||||
icon: 'lucide:area-chart',
|
||||
title: $t('page.dashboard.companyOverview'),
|
||||
title: $t('page.dashboard.storeOverview'),
|
||||
},
|
||||
},
|
||||
// {
|
||||
|
||||
@@ -18,7 +18,7 @@ const ChartIcon = createIconifyIcon('solar:chart-2-linear');
|
||||
const DownloadIcon = createIconifyIcon('solar:file-download-linear');
|
||||
|
||||
const goOverview = () => {
|
||||
router.push('/company-overview');
|
||||
router.push('/store-overview');
|
||||
};
|
||||
|
||||
const goImportTask = () => {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { CompanyOverviewVO } from '#/api/ecommerce/company-overview';
|
||||
import type { CompanyOverviewVO } from '#/api/ecommerce/store-overview';
|
||||
|
||||
import { computed } from 'vue';
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { CompanyOverviewVO } from '#/api/ecommerce/company-overview';
|
||||
import type { CompanyOverviewVO } from '#/api/ecommerce/store-overview';
|
||||
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
@@ -40,7 +40,7 @@ interface Emits {
|
||||
const props = defineProps<Props>();
|
||||
const emit = defineEmits<Emits>();
|
||||
|
||||
const STORAGE_KEY = 'company-overview-tab';
|
||||
const STORAGE_KEY = 'store-overview-tab';
|
||||
const getDefaultMode = (): 'platform' | 'shop' | 'category' => {
|
||||
const stored = localStorage.getItem(STORAGE_KEY);
|
||||
if (stored === 'platform' || stored === 'shop' || stored === 'category') return stored;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { CompanyOverviewVO } from '#/api/ecommerce/company-overview';
|
||||
import type { CompanyOverviewVO } from '#/api/ecommerce/store-overview';
|
||||
|
||||
defineOptions({ name: 'KpiCards' });
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed, ref } from 'vue';
|
||||
import type { CompanyOverviewVO } from '#/api/ecommerce/company-overview';
|
||||
import type { CompanyOverviewVO } from '#/api/ecommerce/store-overview';
|
||||
|
||||
defineOptions({ name: 'PlatformSummaryCard' });
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import type { EchartsUIType } from '@vben/plugins/echarts';
|
||||
|
||||
import type { CompanyOverviewVO } from '#/api/ecommerce/company-overview';
|
||||
import type { CompanyOverviewVO } from '#/api/ecommerce/store-overview';
|
||||
|
||||
import { nextTick, onMounted, ref, watch } from 'vue';
|
||||
import { EchartsUI, useEcharts } from '@vben/plugins/echarts';
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { CompanyOverviewVO } from '#/api/ecommerce/company-overview';
|
||||
import type { CompanyOverviewVO } from '#/api/ecommerce/store-overview';
|
||||
|
||||
import { computed } from 'vue';
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@
|
||||
import type {
|
||||
CompanyOverviewDTO,
|
||||
CompanyOverviewVO,
|
||||
} from '#/api/ecommerce/company-overview';
|
||||
} from '#/api/ecommerce/store-overview';
|
||||
|
||||
import {
|
||||
onActivated,
|
||||
@@ -19,7 +19,7 @@ import { Page } from '@vben/common-ui';
|
||||
import { Button, DatePicker, InputNumber, Spin } from 'ant-design-vue';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
import { getCompanyOverviewApi } from '#/api/ecommerce/company-overview/apis';
|
||||
import { getCompanyOverviewApi } from '#/api/ecommerce/store-overview/apis';
|
||||
import { getShopPageApi } from '#/api/ecommerce/shop';
|
||||
import { exportByPost } from '#/utils/export';
|
||||
|
||||
@@ -374,7 +374,7 @@ const handleExportCompanyOverview = async () => {
|
||||
|
||||
const filename = `公司概览_${startDate.format('YYYYMMDD')}_${endDate.format('YYYYMMDD')}.xlsx`;
|
||||
await exportByPost(
|
||||
'/ec/company-overview/export',
|
||||
'/ec/store-overview/export',
|
||||
{
|
||||
dateRange: [
|
||||
startDate.format('YYYY-MM-DD'),
|
||||
+1
-1
@@ -17,7 +17,7 @@ exports[`defaultPreferences immutability test > should not modify the config obj
|
||||
"contentPaddingRight": 0,
|
||||
"contentPaddingTop": 0,
|
||||
"defaultAvatar": "https://unpkg.com/@vbenjs/static-source@0.1.7/source/avatar-v1.webp",
|
||||
"defaultHomePath": "/company-overview",
|
||||
"defaultHomePath": "/store-overview",
|
||||
"dynamicTitle": true,
|
||||
"enableCheckUpdates": true,
|
||||
"enablePreferences": true,
|
||||
|
||||
@@ -17,7 +17,7 @@ const defaultPreferences: Preferences = {
|
||||
contentPaddingTop: 0,
|
||||
defaultAvatar:
|
||||
'https://unpkg.com/@vbenjs/static-source@0.1.7/source/avatar-v1.webp',
|
||||
defaultHomePath: '/company-overview',
|
||||
defaultHomePath: '/store-overview',
|
||||
dynamicTitle: true,
|
||||
enableCheckUpdates: true,
|
||||
enablePreferences: true,
|
||||
|
||||
Reference in New Issue
Block a user