From aa02c07d9b9b4eebb0771e5bdb97bc5d109c1ded Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Thu, 23 Jun 2022 14:33:11 +0800
Subject: [PATCH] 'lct'
---
src/api/sgyhpczl/troubleshooting.js | 54 ++++++++++++++++++++++++++++++++++++++----------------
1 files changed, 38 insertions(+), 16 deletions(-)
diff --git a/src/api/sgyhpczl/troubleshooting.js b/src/api/sgyhpczl/troubleshooting.js
index 7d26f49..faae69d 100644
--- a/src/api/sgyhpczl/troubleshooting.js
+++ b/src/api/sgyhpczl/troubleshooting.js
@@ -32,32 +32,54 @@
data
});
}
-//导出
-export function analogy_export_do(data) {
+//新增/编辑
+export function addOrEdit(data) {
return request({
- headers: {
+ headers:{
'token': getTokenAndVerify().token,
- 'verify': getTokenAndVerify().verify
+ 'verify':getTokenAndVerify().verify
},
- url: '/taboi/excel/analogy_export_do',
+ url: "/taboi/conference/save_do",
+ contentType: "application/json",
method: 'POST',
- responseType: 'arraybuffer',
data
});
}
-
-//添加/取消关注
-export function dowloand_do(params) {
+//删除
+export function del(data) {
return request({
- headers: {
+ headers:{
'token': getTokenAndVerify().token,
- 'verify': getTokenAndVerify().verify
+ 'verify':getTokenAndVerify().verify
},
- url: '/taboi/file/dowloand_do',
- method: 'GET',
+ url: "/taboi/conference/del_do?id=" + data,
contentType: "multipart/form-data",
- params:params?params:{}
+ method: 'POST'
});
}
-
-
+//上报
+export function upload_do(data) {
+ return request({
+ headers:{
+ 'token': getTokenAndVerify().token,
+ 'verify':getTokenAndVerify().verify
+ },
+ url: "/taboi/conference/upload_do",
+ contentType: "multipart/form-data",
+ method: 'POST',
+ data
+ });
+}
+//撤销
+export function revoke(data) {
+ return request({
+ headers:{
+ 'token': getTokenAndVerify().token,
+ 'verify':getTokenAndVerify().verify
+ },
+ contentType: "multipart/form-data",
+ url: "/taboi/conference/revoke_do",
+ method: 'POST',
+ data
+ });
+}
--
Gitblit v1.9.2