From c9f8b6baeeba469fbf355c3ac4fe794e50d05179 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期四, 06 七月 2023 16:38:32 +0800 Subject: [PATCH] Default Changelist --- src/api/specialWorkSystem/workApply/index.ts | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 102 insertions(+), 1 deletions(-) diff --git a/src/api/specialWorkSystem/workApply/index.ts b/src/api/specialWorkSystem/workApply/index.ts index 6258f0e..7a86f70 100644 --- a/src/api/specialWorkSystem/workApply/index.ts +++ b/src/api/specialWorkSystem/workApply/index.ts @@ -11,6 +11,90 @@ }); }, + // 新分页获取申请列表 + getNewApplyListPage: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/applyUser/list/page`, + method: 'post', + data: data + }); + }, + + // 新获取所有申请 + getAllNewApplyListPage: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/all/list/page`, + method: 'post', + data: data + }); + }, + + // 获取基础数据 + getFormData: (type: number) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/getFormData/${type}`, + method: 'get' + }); + }, + + // 新提交接口 + submitFireApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/hot`, + method: 'post', + data: data + }); + }, + submitSpaceApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/confinedspace`, + method: 'post', + data: data + }); + }, + submitHoistApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/hoisting`, + method: 'post', + data: data + }); + }, + submitGroundApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/groundBreaking`, + method: 'post', + data: data + }); + }, + submitBrokenApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/brokenCircuit`, + method: 'post', + data: data + }); + }, + submitHeightApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/hight`, + method: 'post', + data: data + }); + }, + submitPowerApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/temporaryPower`, + method: 'post', + data: data + }); + }, + submitPlateApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/blindPlatePlugging`, + method: 'post', + data: data + }); + }, + // 所有记录列表 getApplyList: (data: object) => { return request({ @@ -20,10 +104,18 @@ }); }, - // 分页获取申请列表 + // 获取所有用户 getAllUsers: () => { return request({ url: import.meta.env.VITE_API_URL + `/account/list`, + method: 'get' + }); + }, + + // 获取所有设备 + getAllDevices: () => { + return request({ + url: import.meta.env.VITE_API_URL + `/sysAdmin/camera/find/byAll`, method: 'get' }); }, @@ -148,6 +240,15 @@ }); }, + // 获取图片上传路径 + getUpload9Url: (name: string) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/file/getPresignUrl`, + method: 'post', + data: { prefixName: name.split('.')[0], suffixName: name.split('.')[1] } + }); + }, + // 上传图片 uploadFile: (path: string, file: any) => { return request({ -- Gitblit v1.9.2