From bf42ef43fccdf3d3486eec84ad4073b0c7650aba Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 13 八月 2025 17:35:37 +0800 Subject: [PATCH] 新增场景信息文件导入功能 --- src/api/fysp/dataproductApi.js | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/api/fysp/dataproductApi.js b/src/api/fysp/dataproductApi.js index cdcbf76..7980a0f 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,23 @@ // 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