From 76b00821cbb68d12936f8c15c517c0721102891a Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 2 Oct 2025 20:14:20 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90antd=E3=80=91=E3=80=90erp?= =?UTF-8?q?=20=E7=B3=BB=E7=BB=9F=E3=80=91home=20=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/erp/home/index.vue | 4 ++-- .../erp/home/{components => modules}/SummaryCard.vue | 1 - .../home/{components => modules}/TimeSummaryChart.vue | 11 ----------- 3 files changed, 2 insertions(+), 14 deletions(-) rename apps/web-antd/src/views/erp/home/{components => modules}/SummaryCard.vue (96%) rename apps/web-antd/src/views/erp/home/{components => modules}/TimeSummaryChart.vue (96%) diff --git a/apps/web-antd/src/views/erp/home/index.vue b/apps/web-antd/src/views/erp/home/index.vue index 8befaf713..7b9d86e26 100644 --- a/apps/web-antd/src/views/erp/home/index.vue +++ b/apps/web-antd/src/views/erp/home/index.vue @@ -5,8 +5,8 @@ import { DocAlert, Page } from '@vben/common-ui'; import { Col, Row, Spin } from 'ant-design-vue'; -import SummaryCard from './components/SummaryCard.vue'; -import TimeSummaryChart from './components/TimeSummaryChart.vue'; +import SummaryCard from './modules/SummaryCard.vue'; +import TimeSummaryChart from './modules/TimeSummaryChart.vue'; /** ERP首页 */ defineOptions({ name: 'ErpHome' }); diff --git a/apps/web-antd/src/views/erp/home/components/SummaryCard.vue b/apps/web-antd/src/views/erp/home/modules/SummaryCard.vue similarity index 96% rename from apps/web-antd/src/views/erp/home/components/SummaryCard.vue rename to apps/web-antd/src/views/erp/home/modules/SummaryCard.vue index fc36c15d1..ff98e556a 100644 --- a/apps/web-antd/src/views/erp/home/components/SummaryCard.vue +++ b/apps/web-antd/src/views/erp/home/modules/SummaryCard.vue @@ -32,7 +32,6 @@ const props = withDefaults(defineProps(), { }); /** 概览数据 */ -// TODO @nehc:应该是有 8 个小卡片,少了 4 个? const overviewItems = computed(() => [ { icon: SvgCardIcon, diff --git a/apps/web-antd/src/views/erp/home/components/TimeSummaryChart.vue b/apps/web-antd/src/views/erp/home/modules/TimeSummaryChart.vue similarity index 96% rename from apps/web-antd/src/views/erp/home/components/TimeSummaryChart.vue rename to apps/web-antd/src/views/erp/home/modules/TimeSummaryChart.vue index e24f2e4b1..9bdc96eed 100644 --- a/apps/web-antd/src/views/erp/home/components/TimeSummaryChart.vue +++ b/apps/web-antd/src/views/erp/home/modules/TimeSummaryChart.vue @@ -123,11 +123,9 @@ watch( if (!val || val.length === 0) { return; } - // 更新图表数据 const xAxisData = val.map((item) => item.time); const seriesData = val.map((item) => item.price); - const options = { ...lineChartOptions, xAxis: { @@ -141,7 +139,6 @@ watch( }, ], }; - renderEcharts(options); }, { immediate: true }, @@ -151,14 +148,6 @@ watch( onMounted(() => { initData(); }); - -/** 暴露数据给父组件使用 */ -defineExpose({ - saleSummary, - purchaseSummary, - saleTimeSummaryList, - purchaseTimeSummaryList, -});