From e1ab5ce612ba7b6648eb42e9517b600f0469c49f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=9F=91=E8=9E=82?= Date: Wed, 13 May 2026 16:16:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0=E9=9D=99=E6=80=81=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workbench/WorkbenchOverviewTables.vue | 17 +- .../src/views/dashboard/workbench/index.vue | 483 ++++++++++++++---- 2 files changed, 387 insertions(+), 113 deletions(-) diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/WorkbenchOverviewTables.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/WorkbenchOverviewTables.vue index cfd19218..21336e44 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/WorkbenchOverviewTables.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/WorkbenchOverviewTables.vue @@ -7,7 +7,6 @@ import { message, Segmented } from 'ant-design-vue'; import CategoryComparisonTable from '../store-overview/components/CategoryComparisonTable.vue'; import PlatformSummaryCard from '../store-overview/components/PlatformSummaryCard.vue'; import ShopComparisonTable from '../store-overview/components/ShopComparisonTable.vue'; - import { getWorkbenchCategoryOverview, getWorkbenchPlatformOverview, @@ -17,8 +16,10 @@ import { defineOptions({ name: 'WorkbenchOverviewTables' }); -const taxRate = ref(0.04); -const activeMode = ref<'shop' | 'platform' | 'category' | 'product'>('shop'); +withDefaults(defineProps<{ taxRate?: number }>(), { + taxRate: 0.04, +}); +const activeMode = ref<'category' | 'platform' | 'product' | 'shop'>('shop'); const shopOverview = getWorkbenchShopOverview(); const platformOverview = getWorkbenchPlatformOverview(); @@ -56,8 +57,11 @@ function navigateToShopOverview(shopId: number) {