From 2531a76b127ceabe66d00ae7b8096312961e4535 Mon Sep 17 00:00:00 2001 From: YDKD <1606354057@qq.com> Date: Tue, 12 Apr 2022 09:39:10 +0800 Subject: [PATCH] feat(analysis): complete analysis panel --- index.html | 2 +- src/api/getApi.ts | 21 ++++++ src/components/Echarts/src/Echarts.vue | 30 ++++---- src/plugins/echarts/index.ts | 5 +- src/store/modules/analysis.ts | 49 +++++++++++++ src/views/analysis/components/line.vue | 30 ++++++++ src/views/analysis/components/pip.vue | 30 ++++++++ src/views/analysis/components/topCount.vue | 85 ++++++++++++++++++++++ src/views/analysis/echart-options.ts | 72 ++++++++++++++++++ src/views/analysis/hooks/index.ts | 38 ++++++++++ src/views/analysis/hooks/useCount.ts | 67 +++++++++++++++++ src/views/analysis/hooks/useLine.ts | 59 +++++++++++++++ src/views/analysis/hooks/usePipe.ts | 45 ++++++++++++ src/views/analysis/index.vue | 74 ++++++++++++++++++- types/components.d.ts | 5 ++ types/global.d.ts | 6 +- vite/server.ts | 7 +- 17 files changed, 601 insertions(+), 24 deletions(-) create mode 100644 src/store/modules/analysis.ts create mode 100644 src/views/analysis/components/line.vue create mode 100644 src/views/analysis/components/pip.vue create mode 100644 src/views/analysis/components/topCount.vue create mode 100644 src/views/analysis/echart-options.ts create mode 100644 src/views/analysis/hooks/index.ts create mode 100644 src/views/analysis/hooks/useCount.ts create mode 100644 src/views/analysis/hooks/useLine.ts create mode 100644 src/views/analysis/hooks/usePipe.ts diff --git a/index.html b/index.html index 9ba8b3b..386262b 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - + diff --git a/src/api/getApi.ts b/src/api/getApi.ts index ffecda7..04849ec 100644 --- a/src/api/getApi.ts +++ b/src/api/getApi.ts @@ -74,3 +74,24 @@ export function getWorkerAttendance(params: any) { params }) } + +export function getAddPerson() { + return defaultRequest.request({ + url: '/analysis/person/add', + method: 'GET' + }) +} + +export function getLeavingPerson() { + return defaultRequest.request({ + url: '/analysis/person/leaving', + method: 'GET' + }) +} + +export function getCountTotal() { + return defaultRequest.request({ + url: '/analysis/count/total', + method: 'GET' + }) +} diff --git a/src/components/Echarts/src/Echarts.vue b/src/components/Echarts/src/Echarts.vue index a5d4ab4..043c228 100644 --- a/src/components/Echarts/src/Echarts.vue +++ b/src/components/Echarts/src/Echarts.vue @@ -3,7 +3,7 @@ * @Autor: YDKD * @Date: 2022-04-06 10:32:17 * @LastEditors: YDKD - * @LastEditTime: 2022-04-07 16:12:17 + * @LastEditTime: 2022-04-08 16:07:29 -->