From 999cab6fb3fc6d2a288d365da991351c5a396bf0 Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期三, 21 九月 2022 15:53:18 +0800 Subject: [PATCH] 删除无用页面 --- src/api/specialWorkSystem/workApply/index.ts | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 43 insertions(+), 1 deletions(-) diff --git a/src/api/specialWorkSystem/workApply/index.ts b/src/api/specialWorkSystem/workApply/index.ts index ae453fc..0de2384 100644 --- a/src/api/specialWorkSystem/workApply/index.ts +++ b/src/api/specialWorkSystem/workApply/index.ts @@ -3,7 +3,7 @@ export function workApplyApi() { return { // 分页获取申请列表 - getApplyListtPage: (data: object) => { + getApplyListPage: (data: object) => { return request({ url: import.meta.env.VITE_API_URL + `/work/apply/applying/page/list`, method: 'post', @@ -18,6 +18,18 @@ method: 'get' }); }, + + // 导出打印接口 + postPrinting: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/work/apply/printing`, + method: 'post', + data: data, + responseType: 'blob', + headers:{'Content-Type': 'application/json'} + }); + }, + // 动火申请 postFireApply: (data: object) => { @@ -108,5 +120,35 @@ data: data }); }, + + // 获取图片上传路径 + getUploadUrl: (name: string) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialWork/file/getPresignUrl`, + method: 'post', + data: { prefixName: name.split('.')[0], suffixName: name.split('.')[1] } + }); + }, + + // 上传图片 + uploadFile: (path: string, file: any) => { + return request({ + headers: { + contentType: 'application/json;charset=UTF-8' + }, + url: path, + method: 'put', + data: file + }); + }, + + // 删除图片 + deleteFile: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialWork/file/deleteFile`, + method: 'post', + data: data + }); + } }; } -- Gitblit v1.9.2