From faa4a9140df0d1ee30c245897e0e60a29621eb77 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 20 Oct 2025 09:51:31 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90mall=20=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E3=80=91=E5=95=86=E5=93=81=E7=BB=9F=E8=AE=A1=E3=80=90ele?= =?UTF-8?q?=E3=80=91100%=EF=BC=9A=E8=BF=81=E7=A7=BB=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api/system/user/index.ts | 1 - .../src/api/mall/statistics/product.ts | 6 +-- .../statistics/member/modules/sex-card.vue | 3 +- .../statistics/product/modules/rank-card.vue | 7 ++-- .../product/modules/summary-card.vue | 42 ++++++++++--------- .../product/modules/summary-chart-options.ts | 1 - 6 files changed, 32 insertions(+), 28 deletions(-) diff --git a/apps/web-antd/src/api/system/user/index.ts b/apps/web-antd/src/api/system/user/index.ts index fb12be7eb..c9f23a403 100644 --- a/apps/web-antd/src/api/system/user/index.ts +++ b/apps/web-antd/src/api/system/user/index.ts @@ -23,7 +23,6 @@ export namespace SystemUserApi { /** 查询用户管理列表 */ export function getUserPage(params: PageParam) { - debugger return requestClient.get>( '/system/user/page', { params }, diff --git a/apps/web-ele/src/api/mall/statistics/product.ts b/apps/web-ele/src/api/mall/statistics/product.ts index 834ae27d1..2e83f945a 100644 --- a/apps/web-ele/src/api/mall/statistics/product.ts +++ b/apps/web-ele/src/api/mall/statistics/product.ts @@ -41,14 +41,14 @@ export namespace MallProductStatisticsApi { } /** 获得商品统计分析 */ -export function getProductStatisticsAnalyse(params: PageParam) { +export function getProductStatisticsAnalyse(params: any) { return requestClient.get< DataComparisonRespVO >('/statistics/product/analyse', { params }); } /** 获得商品状况明细 */ -export function getProductStatisticsList(params: PageParam) { +export function getProductStatisticsList(params: any) { return requestClient.get( '/statistics/product/list', { params }, @@ -56,7 +56,7 @@ export function getProductStatisticsList(params: PageParam) { } /** 导出获得商品状况明细 Excel */ -export function exportProductStatisticsExcel(params: PageParam) { +export function exportProductStatisticsExcel(params: any) { return requestClient.download('/statistics/product/export-excel', { params }); } diff --git a/apps/web-ele/src/views/mall/statistics/member/modules/sex-card.vue b/apps/web-ele/src/views/mall/statistics/member/modules/sex-card.vue index 930555812..54a254dee 100644 --- a/apps/web-ele/src/views/mall/statistics/member/modules/sex-card.vue +++ b/apps/web-ele/src/views/mall/statistics/member/modules/sex-card.vue @@ -39,7 +39,8 @@ async function getMemberSexStatisticsList() { value: userCount || 0, }; }); - // 更新 Echarts 数据 + + // 渲染图表 await renderEcharts(getSexChartOptions(chartData)); } finally { loading.value = false; diff --git a/apps/web-ele/src/views/mall/statistics/product/modules/rank-card.vue b/apps/web-ele/src/views/mall/statistics/product/modules/rank-card.vue index a2bc11462..2c6fbca6a 100644 --- a/apps/web-ele/src/views/mall/statistics/product/modules/rank-card.vue +++ b/apps/web-ele/src/views/mall/statistics/product/modules/rank-card.vue @@ -8,6 +8,8 @@ import { ref } from 'vue'; import { buildSortingField } from '@vben/request'; import { formatDateTime } from '@vben/utils'; +import { ElCard } from 'element-plus'; + import { useVbenVxeGrid } from '#/adapter/vxe-table'; import * as ProductStatisticsApi from '#/api/mall/statistics/product'; import ShortcutDateRangePicker from '#/components/shortcut-date-range-picker/shortcut-date-range-picker.vue'; @@ -124,7 +126,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ - diff --git a/apps/web-ele/src/views/mall/statistics/product/modules/summary-card.vue b/apps/web-ele/src/views/mall/statistics/product/modules/summary-card.vue index 0a9a0bfe9..6912559f8 100644 --- a/apps/web-ele/src/views/mall/statistics/product/modules/summary-card.vue +++ b/apps/web-ele/src/views/mall/statistics/product/modules/summary-card.vue @@ -19,6 +19,7 @@ import { } from '@vben/utils'; import dayjs from 'dayjs'; +import { ElButton, ElCard, ElCol, ElRow } from 'element-plus'; import * as ProductStatisticsApi from '#/api/mall/statistics/product'; import ShortcutDateRangePicker from '#/components/shortcut-date-range-picker/shortcut-date-range-picker.vue'; @@ -117,27 +118,31 @@ async function handleExport() { - diff --git a/apps/web-ele/src/views/mall/statistics/product/modules/summary-chart-options.ts b/apps/web-ele/src/views/mall/statistics/product/modules/summary-chart-options.ts index ccec70195..ec6e474e1 100644 --- a/apps/web-ele/src/views/mall/statistics/product/modules/summary-chart-options.ts +++ b/apps/web-ele/src/views/mall/statistics/product/modules/summary-chart-options.ts @@ -127,4 +127,3 @@ export function getProductSummaryChartOptions(data: any[]): any { ], }; } -