From c819024e241b9f7c54cc3786373ad0d2998f2190 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Fri, 05 May 2023 08:55:46 +0800
Subject: [PATCH] 修改
---
src/api/sgyhpczl/troubleshooting.js | 26 +++++++-------------------
1 files changed, 7 insertions(+), 19 deletions(-)
diff --git a/src/api/sgyhpczl/troubleshooting.js b/src/api/sgyhpczl/troubleshooting.js
index 610645a..faae69d 100644
--- a/src/api/sgyhpczl/troubleshooting.js
+++ b/src/api/sgyhpczl/troubleshooting.js
@@ -32,20 +32,6 @@
data
});
}
-//下载文件
-export function dowloand_do(params) {
- return request({
- headers: {
- 'token': getTokenAndVerify().token,
- 'verify': getTokenAndVerify().verify
- },
- url: '/taboi/file/dowloand_do',
- method: 'GET',
- contentType: "multipart/form-data",
- responseType:'blob',
- params:params?params:{}
- });
-}
//新增/编辑
export function addOrEdit(data) {
return request({
@@ -72,26 +58,28 @@
});
}
//上报
-export function put(id) {
+export function upload_do(data) {
return request({
headers:{
'token': getTokenAndVerify().token,
'verify':getTokenAndVerify().verify
},
- contentType: "application/json",
+ url: "/taboi/conference/upload_do",
+ contentType: "multipart/form-data",
method: 'POST',
data
});
}
//撤销
-export function revoke(id) {
+export function revoke(data) {
return request({
headers:{
'token': getTokenAndVerify().token,
'verify':getTokenAndVerify().verify
},
contentType: "multipart/form-data",
- url: "/taboi/analogy/revoke_do?id="+id,
- method: 'GET',
+ url: "/taboi/conference/revoke_do",
+ method: 'POST',
+ data
});
}
--
Gitblit v1.9.2