From 1b9fea7d4af68d8f933b2dc42bf6084b9646f64c Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期二, 04 三月 2025 08:39:55 +0800 Subject: [PATCH] 修改作业等级名称 --- 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..5b71079 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 + `/specialwork9step/statistic/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