From 606a5a275815989325ee1ad55bef51a453e1e259 Mon Sep 17 00:00:00 2001 From: czc Date: Wed, 26 Jul 2023 09:47:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/statistics/index.js | 32 +++ .../IndexOrderPanelGroup/TopProduct.vue | 95 +++++++ src/views/dashboard/OrderLineChart.vue | 263 ++++++++++++++++++ src/views/index.vue | 105 +++---- src/views/oms/aftersale/index.vue | 8 +- src/views/oms/order/index.vue | 20 +- src/views/system/user/profile/index.vue | 2 +- src/views/system/user/profile/userAvatar.vue | 4 +- 8 files changed, 460 insertions(+), 69 deletions(-) create mode 100644 src/api/statistics/index.js create mode 100644 src/views/components/IndexOrderPanelGroup/TopProduct.vue create mode 100644 src/views/dashboard/OrderLineChart.vue diff --git a/src/api/statistics/index.js b/src/api/statistics/index.js new file mode 100644 index 0000000..7fd504a --- /dev/null +++ b/src/api/statistics/index.js @@ -0,0 +1,32 @@ +import request from '@/utils/request' + +// 获取首页查询热卖商品TOP +export function goodsStatistics(query) { + return request({ + url: '/dev/statistics/index/goodsStatistics', + method: 'get', + params: query + }) +} +export function memberAndCartStatistics() { + return request({ + url: '/dev/statistics/index/memberAndCart/statistics', + method: 'get' + }) +} + +export function orderAndAftersaleStatistics() { + return request({ + url: '/dev/statistics/index/order/aftersale/statistics', + method: 'get' + }) +} + +// 获取订单信息 +export function orderStatistics(query) { + return request({ + url: '/dev/statistics/index/orderStatistics', + method: 'get', + params: query + }) +} diff --git a/src/views/components/IndexOrderPanelGroup/TopProduct.vue b/src/views/components/IndexOrderPanelGroup/TopProduct.vue new file mode 100644 index 0000000..edeb809 --- /dev/null +++ b/src/views/components/IndexOrderPanelGroup/TopProduct.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/src/views/dashboard/OrderLineChart.vue b/src/views/dashboard/OrderLineChart.vue new file mode 100644 index 0000000..9e07b1f --- /dev/null +++ b/src/views/dashboard/OrderLineChart.vue @@ -0,0 +1,263 @@ + + + diff --git a/src/views/index.vue b/src/views/index.vue index b15d3dd..d505017 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -9,10 +9,8 @@