From 036f7be38aaa641f5f20d39eaea77a560ecdd93f Mon Sep 17 00:00:00 2001
From: zhoucong <123456>
Date: Mon, 16 May 2022 15:34:43 +0800
Subject: [PATCH] fix
---
src/api/sgyhpczl/hiddenDangerRectification.js | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/api/sgyhpczl/hiddenDangerRectification.js b/src/api/sgyhpczl/hiddenDangerRectification.js
index 476006b..17869b6 100644
--- a/src/api/sgyhpczl/hiddenDangerRectification.js
+++ b/src/api/sgyhpczl/hiddenDangerRectification.js
@@ -69,7 +69,7 @@
'token': getTokenAndVerify().token,
'verify':getTokenAndVerify().verify
},
- url: "/taboi/danger/control_list",
+ url: process.env.ZT_API+"/taboi/danger/control_list",
contentType: "application/json",
method: 'POST',
data
@@ -81,7 +81,7 @@
'token': getTokenAndVerify().token,
'verify':getTokenAndVerify().verify
},
- url: "/taboi/file/upload_do",
+ url: process.env.ZT_API+"/taboi/file/upload_do",
contentType: "multipart/form-data",
method: 'POST',
data,
@@ -95,9 +95,22 @@
'token': getTokenAndVerify().token,
'verify':getTokenAndVerify().verify
},
- url: "/taboi/danger/delay_do",
+ url: process.env.ZT_API+"/taboi/danger/delay_do",
contentType: "application/json",
method: 'POST',
data,
});
}
+
+export function danger_export_do(data) {
+ return request({
+ headers: {
+ 'token': getTokenAndVerify().token,
+ 'verify': getTokenAndVerify().verify
+ },
+ url: process.env.ZT_API+'/taboi/excel/danger_export_do',
+ method: 'post',
+ responseType: 'arraybuffer',
+ data
+ });
+}
--
Gitblit v1.9.2