From 3a9ca6d56fbad4c67b858185d9e9b157e3d60b82 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期三, 22 三月 2023 08:48:51 +0800 Subject: [PATCH] 对接特殊作业接口 --- src/api/specialWorkSystem/specialIndex/index.ts | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/api/specialWorkSystem/specialIndex/index.ts b/src/api/specialWorkSystem/specialIndex/index.ts index 5bb9c3f..b57ff7e 100644 --- a/src/api/specialWorkSystem/specialIndex/index.ts +++ b/src/api/specialWorkSystem/specialIndex/index.ts @@ -2,11 +2,32 @@ 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 + `/work/page/my-dep/list`, + method: 'post', + data: data + }); } }; } -- Gitblit v1.9.2