From c1d2051abc8ca88cd07f0d7c56c0dbf8165d5c33 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 18 九月 2025 17:02:22 +0800 Subject: [PATCH] 2025.9.18 数据产品(待完成) --- 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