From a8ef7c1a4b2ab6acd91a0520e6258bd753d17f20 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期三, 16 八月 2023 15:58:20 +0800 Subject: [PATCH] 人员证书类型 --- src/api/specialWorkSystem/specialIndex/index.ts | 32 ++++++++++++++++++++++++++++++-- 1 files changed, 30 insertions(+), 2 deletions(-) diff --git a/src/api/specialWorkSystem/specialIndex/index.ts b/src/api/specialWorkSystem/specialIndex/index.ts index 5bb9c3f..5affc2d 100644 --- a/src/api/specialWorkSystem/specialIndex/index.ts +++ b/src/api/specialWorkSystem/specialIndex/index.ts @@ -2,11 +2,39 @@ 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 + `/specialWork/analyse/allWork/dep`, + method: 'post', + data: data + }); + }, + analyseDepMonth: (data: number) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialWork/analyse/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 + }); } }; } -- Gitblit v1.9.2