From 3bf971dca1758a4f990915233c86888754c66873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com> Date: Tue, 9 Jul 2024 18:20:29 +0800 Subject: [PATCH] 1 --- .env.development | 4 +- src/api/home.js | 6 + src/router/index.js | 6 + .../daily-statistics/components/DayData.vue | 358 ++++++++++++++++++ src/views/daily-statistics/index.vue | 124 ++++++ src/views/product/productExamine/index.vue | 1 + 6 files changed, 497 insertions(+), 2 deletions(-) create mode 100644 src/views/daily-statistics/components/DayData.vue create mode 100644 src/views/daily-statistics/index.vue diff --git a/.env.development b/.env.development index 2d88d40..e47a783 100644 --- a/.env.development +++ b/.env.development @@ -3,11 +3,11 @@ ENV = 'development' # http://192.168.1.43:8324/admin # http://mer.crmeb.net/admin # base api -VUE_APP_BASE_API = 'http://192.168.1.18:8080' +VUE_APP_BASE_API = 'http://192.168.1.12:8080' # VUE_APP_BASE_API = 'https://api.tropjoin.com/' # socket 连接地址 -VUE_APP_WS_URL = 'ws://http://192.168.1.18:8080' +VUE_APP_WS_URL = 'ws://http://192.168.1.12:8080' # VUE_APP_WS_URL = 'ws://https://api.tropjoin.com/' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/src/api/home.js b/src/api/home.js index 11528c6..76b7577 100644 --- a/src/api/home.js +++ b/src/api/home.js @@ -12,6 +12,12 @@ export function statisticsApi() { export function statisticsOrderApi() { return request.get('statistics/order') } +/** + * @description 每日统计 + */ +export function statisticsDayApi(data) { + return request.get('statistics/day', data) +} /** * @description 当日订单数 */ diff --git a/src/router/index.js b/src/router/index.js index 9c0e4ff..9e9429d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -72,6 +72,12 @@ export const constantRoutes = [ component: () => import("@/views/user-consumption/index"), name: "user-consumption", meta: { title: "用户消费统计" } + }, + { + path: `${roterPre}/daily-statistics`, + component: () => import("@/views/daily-statistics/index"), + name: "daily-statistics", + meta: { title: "每日统计" } } ] }, diff --git a/src/views/daily-statistics/components/DayData.vue b/src/views/daily-statistics/components/DayData.vue new file mode 100644 index 0000000..62d2f4e --- /dev/null +++ b/src/views/daily-statistics/components/DayData.vue @@ -0,0 +1,358 @@ + + + + + + \ No newline at end of file diff --git a/src/views/daily-statistics/index.vue b/src/views/daily-statistics/index.vue new file mode 100644 index 0000000..bc3bc10 --- /dev/null +++ b/src/views/daily-statistics/index.vue @@ -0,0 +1,124 @@ + + + + + \ No newline at end of file diff --git a/src/views/product/productExamine/index.vue b/src/views/product/productExamine/index.vue index 88fe3a5..bba41f5 100644 --- a/src/views/product/productExamine/index.vue +++ b/src/views/product/productExamine/index.vue @@ -434,6 +434,7 @@ +