diff --git a/src/api/well.js b/src/api/well.js index 127bcca..a7261ee 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -73,15 +73,26 @@ }) } // 批量导出 -export function batchExportWell(params) { +export function batchExportWell(params, config) { return request({ url: 'well/batchExport', method: 'get', timeout: 120000, params, + ...config, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// export function batchExportWell(params) { +// return request({ +// url: 'well/batchExport', +// method: 'get', +// timeout: 120000, +// params, +// responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob +// }) +// } // 获取某井内监控数据 export function watchDataByWell(id) { return request({