From baf475f44f0a940bbdc2dde36fff9cdf97da58bc Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Thu, 17 Aug 2023 16:43:28 +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