From e05280aa4b321f7aab21bab53391d18429e6eab1 Mon Sep 17 00:00:00 2001 From: BabyBoy <2019108827@qq.com> Date: Wed, 17 Sep 2025 15:29:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=EF=BC=8Cbug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 13 +- src/api/goods.js | 36 + src/api/member.js | 38 + src/components/affix-time.vue | 234 ++++++ src/views/dashboard/LineChartnew.vue | 1 - src/views/statistics/goods.vue | 123 +++ src/views/statistics/member.vue | 226 ++++++ src/views/statistics/order.vue | 898 +++++++++++++++++++++ src/views/statistics/order/orderDetail.vue | 153 ++++ src/views/statistics/order/refundOrder.vue | 177 ++++ src/views/statistics/traffic.vue | 223 +++++ src/views/system/divide/index.vue | 4 +- 12 files changed, 2117 insertions(+), 9 deletions(-) create mode 100644 src/api/goods.js create mode 100644 src/api/member.js create mode 100644 src/components/affix-time.vue create mode 100644 src/views/statistics/goods.vue create mode 100644 src/views/statistics/member.vue create mode 100644 src/views/statistics/order.vue create mode 100644 src/views/statistics/order/orderDetail.vue create mode 100644 src/views/statistics/order/refundOrder.vue create mode 100644 src/views/statistics/traffic.vue diff --git a/package.json b/package.json index b92f5ea..8108a5e 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,8 @@ "animate.css": "4.1.1", "await-to-js": "3.0.0", "axios": "1.8.4", - "dayjs": "^1.11.10", "crypto-js": "4.2.0", + "dayjs": "^1.11.10", "echarts": "5.6.0", "element-plus": "2.9.8", "file-saver": "2.0.5", @@ -41,6 +41,7 @@ "moment": "^2.24.0", "nprogress": "0.2.0", "pinia": "3.0.2", + "qs": "^6.10.3", "screenfull": "6.0.2", "vue": "3.5.13", "vue-count-to": "1.0.13", @@ -49,10 +50,10 @@ "vue-json-pretty": "2.4.0", "vue-router": "4.5.0", "vue-types": "6.0.0", - "vxe-table": "4.13.7", - "qs": "^6.10.3" + "vxe-table": "4.13.7" }, "devDependencies": { + "@antv/g2": "^4.2.11", "@iconify/json": "^2.2.276", "@types/crypto-js": "4.2.2", "@types/file-saver": "2.0.7", @@ -73,6 +74,8 @@ "globals": "16.0.0", "prettier": "3.5.2", "sass": "1.87.0", + "stylus": "^0.54.5", + "stylus-loader": "^3.0.2", "typescript": "~5.8.3", "unocss": "66.0.0", "unplugin-auto-import": "19.1.2", @@ -84,9 +87,7 @@ "vite-plugin-svg-icons-ng": "^1.4.0", "vite-plugin-vue-devtools": "7.7.5", "vitest": "3.1.2", - "vue-tsc": "^2.2.8", - "stylus": "^0.54.5", - "stylus-loader": "^3.0.2" + "vue-tsc": "^2.2.8" }, "overrides": { "quill": "2.0.2" diff --git a/src/api/goods.js b/src/api/goods.js new file mode 100644 index 0000000..8afcaae --- /dev/null +++ b/src/api/goods.js @@ -0,0 +1,36 @@ +import request from '@/utils/request' + +// 订单统计概览 +export function getOrderOverView(query) { + return request({ + url: '/manager/statistics/order/overview', + method: 'get', + params: query + }) +} + +// 获取订单统计图表 +export function getOrderChart(query) { + return request({ + url: '/manager/statistics/order', + method: 'get', + params: query + }) +} +// 统计相关订单统计 +export function statisticsOrderList(query) { + return request({ + url: '/manager/statistics/order/order', + method: 'get', + params: query + }) +} + +// 统计相关退单统计 +export function statisticsOrderRefundList(query) { + return request({ + url: '/manager/statistics/order/refund', + method: 'get', + params: query + }) +} diff --git a/src/api/member.js b/src/api/member.js new file mode 100644 index 0000000..6e9c9c3 --- /dev/null +++ b/src/api/member.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + +// 获取首页查询热卖商品TOP +export function getMemberStatistics(query) { + return request({ + url: '/manager/statistics/member', + method: 'get', + params: query + }) +} + + +// 获取流量统计 +export function getStatisticsList(query) { + return request({ + url: '/manager/statistics/view/list', + method: 'get', + params: query + }) +} + +// 获取流量统计 +export function goodsStatistics(query) { + return request({ + url: '/manager/statistics/goods', + method: 'get', + params: query + }) +} + +//查询店铺列表 +export function getShopListData(query) { + return request({ + url: '/manager/store/store', + method: 'get', + params: query + }) +} diff --git a/src/components/affix-time.vue b/src/components/affix-time.vue new file mode 100644 index 0000000..2943fcc --- /dev/null +++ b/src/components/affix-time.vue @@ -0,0 +1,234 @@ + + + diff --git a/src/views/dashboard/LineChartnew.vue b/src/views/dashboard/LineChartnew.vue index 85f3c89..8685abb 100644 --- a/src/views/dashboard/LineChartnew.vue +++ b/src/views/dashboard/LineChartnew.vue @@ -68,7 +68,6 @@ export default { methods: { initChart() { this.defaultOption = { ...this.defaultOption, ...this.chartData }; - console.log(this.defaultOption); const chartDom = document.getElementById(this.id); const myChart = echarts.init(chartDom); myChart.setOption(this.defaultOption); diff --git a/src/views/statistics/goods.vue b/src/views/statistics/goods.vue new file mode 100644 index 0000000..485c513 --- /dev/null +++ b/src/views/statistics/goods.vue @@ -0,0 +1,123 @@ + + + diff --git a/src/views/statistics/member.vue b/src/views/statistics/member.vue new file mode 100644 index 0000000..a389172 --- /dev/null +++ b/src/views/statistics/member.vue @@ -0,0 +1,226 @@ + + + diff --git a/src/views/statistics/order.vue b/src/views/statistics/order.vue new file mode 100644 index 0000000..6db8602 --- /dev/null +++ b/src/views/statistics/order.vue @@ -0,0 +1,898 @@ + + + diff --git a/src/views/statistics/order/orderDetail.vue b/src/views/statistics/order/orderDetail.vue new file mode 100644 index 0000000..ea54c6f --- /dev/null +++ b/src/views/statistics/order/orderDetail.vue @@ -0,0 +1,153 @@ + + + diff --git a/src/views/statistics/order/refundOrder.vue b/src/views/statistics/order/refundOrder.vue new file mode 100644 index 0000000..432b7c3 --- /dev/null +++ b/src/views/statistics/order/refundOrder.vue @@ -0,0 +1,177 @@ + + + diff --git a/src/views/statistics/traffic.vue b/src/views/statistics/traffic.vue new file mode 100644 index 0000000..cb703ae --- /dev/null +++ b/src/views/statistics/traffic.vue @@ -0,0 +1,223 @@ + + + diff --git a/src/views/system/divide/index.vue b/src/views/system/divide/index.vue index 350d2fd..2ae4223 100644 --- a/src/views/system/divide/index.vue +++ b/src/views/system/divide/index.vue @@ -118,7 +118,7 @@ - + @@ -144,7 +144,7 @@ - +