mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 04:29:20 +08:00
refactor: company-overview 更名为 store-overview (全店概览)
- 目录 rename: company-overview → store-overview - API/views/router 同步更新路径 - 删除废弃组件和配置 - 修复 README 和 preferences 配置
This commit is contained in:
@@ -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'),
|
||||
Reference in New Issue
Block a user