riku
2025-08-01 5efcf83a4a67bf5cefbee480c58a697553f9f8de
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;
    });
  }
};