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 |   68 +++++++++++++++++++++++-----------
 1 files changed, 46 insertions(+), 22 deletions(-)

diff --git a/src/api/sgyhpczl/troubleshooting.js b/src/api/sgyhpczl/troubleshooting.js
index 63bbf4a..2dbe1f1 100644
--- a/src/api/sgyhpczl/troubleshooting.js
+++ b/src/api/sgyhpczl/troubleshooting.js
@@ -12,6 +12,10 @@
     if(data.form.HOST!=null && data.form.HOST!=''){
         arr.push({field:"HOST",value:data.form.HOST,type:'TXT'})
     }
+    /*会议专业*/
+    if(data.form.CONFERENCE_PROFESSIONAL!=null && data.form.CONFERENCE_PROFESSIONAL!='' && data.form.CONFERENCE_PROFESSIONAL!='0'){
+        arr.push({field:"CONFERENCE_PROFESSIONAL",value:data.form.CONFERENCE_PROFESSIONAL,type:'OPT'})
+    }
     /*召开时间*/
     if(data.form.Conference_TimeStart!=null && data.form.Conference_TimeStart!='' && data.form.Conference_TimeEnd!=null && data.form.Conference_TimeEnd!=''){
         arr.push({field:"Conference_Time",value:data.form.Conference_TimeStart+"至"+data.form.Conference_TimeEnd,type:'DAT'})
@@ -28,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',
-        method: 'POST',
-        responseType: 'arraybuffer',
-        data
-    });
-}
-
-//添加/取消关注
-export function focus_do(data) {
-    return request({
-        headers: {
-            'token': getTokenAndVerify().token,
-            'verify': getTokenAndVerify().verify
-        },
-        url: '/taboi/danger/focus_do',
-        method: 'POST',
+        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