From 38af7850e2c62b28ccb6f990140ac17c4bc21419 Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期一, 18 三月 2024 14:49:27 +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..da21744 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 + `/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 + }); } }; } -- Gitblit v1.9.2