| | |
| | | |
| | | 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 |
| | | }); |
| | | } |
| | | }; |
| | | } |