From 5ad61d6ad3a0ce12c7fe0808527069b09a7c9c0d Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 16 九月 2025 17:31:05 +0800
Subject: [PATCH] 新增基础产品

---
 src/api/fysp/dataproductApi.js |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/src/api/fysp/dataproductApi.js b/src/api/fysp/dataproductApi.js
index cdcbf76..1790067 100644
--- a/src/api/fysp/dataproductApi.js
+++ b/src/api/fysp/dataproductApi.js
@@ -8,7 +8,7 @@
   downloadProduct(area, type, forceUpdate) {
     return $fysp
       .post(`dataProduct/download?`, area, {
-        responseType: 'arraybuffer',
+        responseType: 'blob',
         params: { type, forceUpdate }
       })
       .then((res) => {
@@ -18,7 +18,7 @@
         }
         // 鏂囨。宸插瓨鍦紝杩斿洖鏂囦欢鏁版嵁娴�
         else {
-          return res.data
+          return res;
           // const name = Base64.decode(res.headers.get('filename'));
           // const url = window.URL.createObjectURL(res.data);
           // const link = document.createElement('a');
@@ -30,5 +30,24 @@
           // window.URL.revokeObjectURL(url);
         }
       });
-  }
+  },
+
+  /**
+   * 鑾峰彇闂鏁存敼娓呭崟
+   */
+  fetchProbChangeList(option) {
+    return $fysp.post(`dataProduct/problemChange?`, option).then((res) => {
+      return res.data;
+    });
+  },
+
+  /**
+   * 鑾峰彇闂澶嶅彂娓呭崟
+   */
+  fetchProbRecurrence(option) {
+    return $fysp.post(`dataProduct/problemRecurrence?`, option).then((res) => {
+      return res.data;
+    });
+  },
+
 };

--
Gitblit v1.9.3