From a7301af282fd45501b73431747e52c96999816de Mon Sep 17 00:00:00 2001
From: cqf
Date: 星期六, 21 五月 2022 16:23:36 +0800
Subject: [PATCH] 隐患排查会议-上传下载增删改

---
 src/api/sgyhpczl/troubleshooting.js |   68 +++++++++++++++++++++++++--------
 1 files changed, 51 insertions(+), 17 deletions(-)

diff --git a/src/api/sgyhpczl/troubleshooting.js b/src/api/sgyhpczl/troubleshooting.js
index 7d26f49..610645a 100644
--- a/src/api/sgyhpczl/troubleshooting.js
+++ b/src/api/sgyhpczl/troubleshooting.js
@@ -32,21 +32,7 @@
         data
     });
 }
-//导出
-export function analogy_export_do(data) {
-    return request({
-        headers: {
-            'token': getTokenAndVerify().token,
-            'verify': getTokenAndVerify().verify
-        },
-        url: '/taboi/excel/analogy_export_do',
-        method: 'POST',
-        responseType: 'arraybuffer',
-        data
-    });
-}
-
-//添加/取消关注
+//下载文件
 export function dowloand_do(params) {
     return request({
         headers: {
@@ -56,8 +42,56 @@
         url: '/taboi/file/dowloand_do',
         method: 'GET',
         contentType: "multipart/form-data",
+        responseType:'blob',
         params:params?params:{}
     });
 }
-
-
+//新增/编辑
+export function addOrEdit(data) {
+    return request({
+        headers:{
+            'token': getTokenAndVerify().token,
+            'verify':getTokenAndVerify().verify
+        },
+        url: "/taboi/conference/save_do",
+        contentType: "application/json",
+        method: 'POST',
+        data
+    });
+}
+//删除
+export function del(data) {
+    return request({
+        headers:{
+            'token': getTokenAndVerify().token,
+            'verify':getTokenAndVerify().verify
+        },
+        url: "/taboi/conference/del_do?id=" + data,
+        contentType: "multipart/form-data",
+        method: 'POST'
+    });
+}
+//上报
+export function put(id) {
+    return request({
+        headers:{
+            'token': getTokenAndVerify().token,
+            'verify':getTokenAndVerify().verify
+        },
+        contentType: "application/json",
+        method: 'POST',
+        data
+    });
+}
+//撤销
+export function revoke(id) {
+    return request({
+        headers:{
+            'token': getTokenAndVerify().token,
+            'verify':getTokenAndVerify().verify
+        },
+        contentType: "multipart/form-data",
+        url: "/taboi/analogy/revoke_do?id="+id,
+        method: 'GET',
+    });
+}

--
Gitblit v1.9.2