mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 22:59:19 +08:00
fix(ecom-dmb): 登录验证公司成员状态;公司概览三组件合并为ComparisonSwitcher
This commit is contained in:
@@ -23,11 +23,9 @@ import { getCompanyOverviewApi } from '#/api/ecommerce/company-overview/apis';
|
||||
import { getShopPageApi } from '#/api/ecommerce/shop';
|
||||
import { exportByPost } from '#/utils/export';
|
||||
|
||||
import CategoryComparisonTable from './components/CategoryComparisonTable.vue';
|
||||
import ComparisonSwitcher from './components/ComparisonSwitcher.vue';
|
||||
import KpiCards from './components/KpiCards.vue';
|
||||
import ShopCharts from './components/ShopCharts.vue';
|
||||
import PlatformSummaryCard from './components/PlatformSummaryCard.vue';
|
||||
import ShopComparisonTable from './components/ShopComparisonTable.vue';
|
||||
|
||||
defineOptions({ name: 'CompanyOverview' });
|
||||
|
||||
@@ -578,38 +576,28 @@ const navigateToShopOverview = (shopId: number) => {
|
||||
:shop-efficiency-quadrants="overviewData?.shopEfficiencyQuadrants"
|
||||
/>
|
||||
|
||||
<!-- 第三层:平台维度汇总 -->
|
||||
<PlatformSummaryCard
|
||||
:platform-summary="overviewData?.platformSummary"
|
||||
<!-- 第三层:平台/店铺/品类明细切换 -->
|
||||
<ComparisonSwitcher
|
||||
:tax-rate="taxRate"
|
||||
:platform-summary="overviewData?.platformSummary"
|
||||
:platform-export-mode="platformExportMode"
|
||||
:selected-export-platform-ids="selectedExportPlatformIds"
|
||||
@update:selected-export-platform-ids="(ids) => (selectedExportPlatformIds = ids)"
|
||||
@toggle-platform-export-mode="togglePlatformExportMode"
|
||||
@export="handlePlatformExport"
|
||||
/>
|
||||
|
||||
<!-- 第四层:横向对比大表 -->
|
||||
<ShopComparisonTable
|
||||
:shop-comparisons="overviewData?.shopComparisons"
|
||||
:tax-rate="taxRate"
|
||||
:shop-export-mode="shopExportMode"
|
||||
:selected-export-shop-ids="selectedExportShopIds"
|
||||
@update:selected-export-shop-ids="(ids) => (selectedExportShopIds = ids)"
|
||||
@toggle-shop-export-mode="toggleShopExportMode"
|
||||
@export="handleExportCompanyOverview"
|
||||
@navigate="navigateToShopOverview"
|
||||
/>
|
||||
|
||||
<!-- 第五层:品类多维度经营明细对比 -->
|
||||
<CategoryComparisonTable
|
||||
:category-comparisons="overviewData?.categoryComparisons"
|
||||
:tax-rate="taxRate"
|
||||
:category-export-mode="categoryExportMode"
|
||||
:selected-export-category-ids="selectedExportCategoryIds"
|
||||
@update:selected-export-platform-ids="(ids) => (selectedExportPlatformIds = ids)"
|
||||
@toggle-platform-export-mode="togglePlatformExportMode"
|
||||
@platform-export="handlePlatformExport"
|
||||
@update:selected-export-shop-ids="(ids) => (selectedExportShopIds = ids)"
|
||||
@toggle-shop-export-mode="toggleShopExportMode"
|
||||
@shop-export="handleExportCompanyOverview"
|
||||
@navigate="navigateToShopOverview"
|
||||
@toggle-category-export-mode="handleCategoryExportToggle"
|
||||
@update:selected-export-category-ids="selectedExportCategoryIds = $event"
|
||||
@export="handleCategoryExport"
|
||||
@category-export="handleCategoryExport"
|
||||
/>
|
||||
</div>
|
||||
</Spin>
|
||||
|
||||
Reference in New Issue
Block a user