From 9a25ff91b49712d1ec69a8be4dd031c6acf29004 Mon Sep 17 00:00:00 2001
From: cqf <2@qq.com>
Date: 星期三, 15 六月 2022 15:52:13 +0800
Subject: [PATCH] 样式修改

---
 src/api/sgyhpczl/hiddenDangerRegistration.js |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/api/sgyhpczl/hiddenDangerRegistration.js b/src/api/sgyhpczl/hiddenDangerRegistration.js
index e5a2675..75ea8f4 100644
--- a/src/api/sgyhpczl/hiddenDangerRegistration.js
+++ b/src/api/sgyhpczl/hiddenDangerRegistration.js
@@ -161,3 +161,31 @@
         method: 'POST',
     });
 }
+//导出
+export function analogy_export_do(data) {
+    return request({
+        headers: {
+            'token': getTokenAndVerify().token,
+            'verify': getTokenAndVerify().verify
+        },
+        url: '/taboi/excel/danger_export_do',
+        method: 'POST',
+        responseType: 'arraybuffer',
+        data
+    });
+}
+//下载模板
+export function downloadFile(params) {
+    return request({
+        headers: {
+            'token': getTokenAndVerify().token,
+            'verify': getTokenAndVerify().verify
+        },
+        url: '/taboi/download/danger_template',
+        method: 'GET',
+        contentType: "multipart/form-data",
+        responseType:'blob',
+        params:params?params:{}
+    });
+}
+

--
Gitblit v1.9.2