From 39f060abfb858435130dee0182eb8e45e196a868 Mon Sep 17 00:00:00 2001 From: Rain <904416525@qq.com> Date: Thu, 31 Oct 2024 10:53:51 +0800 Subject: [PATCH] =?UTF-8?q?2024-10-31=20=E5=AE=89=E5=85=A8=E6=95=99?= =?UTF-8?q?=E8=82=B2-api=E8=A1=A5=E9=BD=90=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/safeEdgeProtection.ts | 27 ++ .../safeEducation/bottomLeft.vue | 30 +- .../safeEducation/bottomRight.vue | 58 +++- .../safeEducation/centerBottom.vue | 178 ++++++------ .../safeEducation/centerTop.vue | 39 ++- .../safeEducation/topLeft.vue | 34 ++- .../safeEducation/topRight.vue | 260 +++++++----------- 7 files changed, 368 insertions(+), 258 deletions(-) create mode 100644 src/api/modules/safeEdgeProtection.ts diff --git a/src/api/modules/safeEdgeProtection.ts b/src/api/modules/safeEdgeProtection.ts new file mode 100644 index 0000000..a84d61f --- /dev/null +++ b/src/api/modules/safeEdgeProtection.ts @@ -0,0 +1,27 @@ +import http from "@/api"; +const BASEURL = import.meta.env.VITE_API_URL; + +// 培训概况 +export const safecationOverview = (params: {}) => { + return http.post(BASEURL + `/xmgl/workerSafeEducationWorker/selectWorkerEducationOverview`, params); +}; + +// 班前教育人数统计(近七日) +export const safecationByWeek = (params: {}) => { + return http.post(BASEURL + `/xmgl/workerSafeEducationWorker/selectWorkerEducationByWeek`, params); +}; + +// 教育类型分析 +export const safecationByType = (params: {}) => { + return http.post(BASEURL + `/xmgl/workerSafeEducationWorker/selectWorkerEducationByType`, params); +}; + +// 近七日人员培训记录 +export const safeWorkerPage = (params: {}) => { + return http.post(BASEURL + `/xmgl/workerSafeEducationWorker/selectSafeEducationWorkerPage`, params); +}; + +// 培训统计(近一个月内) 培训人员班组统计(近一个月内) +export const safecationByMonth = (params: {}) => { + return http.post(BASEURL + `/xmgl/workerSafeEducationWorker/selectWorkerEducationByMonth`, params); +}; diff --git a/src/views/sevenLargeScreen/safetyManagement/safeEducation/bottomLeft.vue b/src/views/sevenLargeScreen/safetyManagement/safeEducation/bottomLeft.vue index 4d22a38..7647ada 100644 --- a/src/views/sevenLargeScreen/safetyManagement/safeEducation/bottomLeft.vue +++ b/src/views/sevenLargeScreen/safetyManagement/safeEducation/bottomLeft.vue @@ -4,19 +4,19 @@