From a90cf43e7a1f41dcde401ed1fd118b0f90d7c3f5 Mon Sep 17 00:00:00 2001
From: cqf
Date: 星期四, 26 五月 2022 11:41:49 +0800
Subject: [PATCH] 举一反三隐患-存在

---
 src/api/sgyhpczl/troubleshooting.js |   52 ++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 36 insertions(+), 16 deletions(-)

diff --git a/src/api/sgyhpczl/troubleshooting.js b/src/api/sgyhpczl/troubleshooting.js
index 7d26f49..2dbe1f1 100644
--- a/src/api/sgyhpczl/troubleshooting.js
+++ b/src/api/sgyhpczl/troubleshooting.js
@@ -32,32 +32,52 @@
         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 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