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 @@ - +