From 20b0ce2db27b64a60de60aee05dedd448099e330 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期一, 08 七月 2024 10:12:16 +0800 Subject: [PATCH] xiugai --- src/api/specialWorkSystem/specialIndex/index.ts | 39 +++++++++++++++++++++++++++++++++++++-- 1 files changed, 37 insertions(+), 2 deletions(-) diff --git a/src/api/specialWorkSystem/specialIndex/index.ts b/src/api/specialWorkSystem/specialIndex/index.ts index 5bb9c3f..b40b8fd 100644 --- a/src/api/specialWorkSystem/specialIndex/index.ts +++ b/src/api/specialWorkSystem/specialIndex/index.ts @@ -2,11 +2,46 @@ export function specialIndexApi() { return { - analyseType: (startTime: string | null,endTime: string | null,depId: number | null) => { + analyseType: (data: object) => { return request({ - url: import.meta.env.VITE_API_URL + `specialWork/analyse/everyType/dep?startTime=${startTime == null ? null : startTime}&endTime=${endTime == null ? null : endTime}&depId=${depId == null ? null : depId}`, + url: import.meta.env.VITE_API_URL + `/specialWork/analyse/everyType/dep`, + method: 'post', + data: data + }); + }, + analyseAllWork: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/statistic/allWork/dep`, + method: 'post', + data: data + }); + }, + analyseDepMonth: (data: number) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/statistic/12month/dep?depId=${data}`, method: 'get' }); + }, + getMydepList: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/working/page/my-dep/list`, + method: 'post', + data: data + }); + }, + getWorkRecord: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/log`, + method: 'post', + data: data + }); + }, + getWorkWarning: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/statistic/work/warning`, + method: 'post', + data: data + }); } }; } -- Gitblit v1.9.2