diff --git a/fe/PC/src/api/wms-api.js b/fe/PC/src/api/wms-api.js index b4cc69710..2a13af2f1 100644 --- a/fe/PC/src/api/wms-api.js +++ b/fe/PC/src/api/wms-api.js @@ -97,6 +97,7 @@ export function postExportForDetail(data, url,params) { method: 'post', data, params: params, + responseType: 'blob' }) } //导出-文件 diff --git a/fe/PC/src/mixins/drawerMixins.js b/fe/PC/src/mixins/drawerMixins.js index 05fd7c859..fedd69bed 100644 --- a/fe/PC/src/mixins/drawerMixins.js +++ b/fe/PC/src/mixins/drawerMixins.js @@ -290,11 +290,12 @@ export const drawerMixins = { PageListParams.function = that.$route.meta.title PageListParams.route = url; postExportForDetail(PageListParams,url,params).then(res => { - fileStorage({blobName: res.blobName}).then( fileStorageRes => { - that.downloadFile(fileStorageRes.bytes, fileStorageRes.fileName) - }).catch( err => { - console.log(err) - }) + this.blob(res, this.$route.meta.title )//使用前端导出名称 + // fileStorage({blobName: res.blobName}).then( fileStorageRes => { + // that.downloadFile(fileStorageRes.bytes, fileStorageRes.fileName) + // }).catch( err => { + // console.log(err) + // }) that.Loading.appMainLoading = false }).catch(err => { that.Loading.appMainLoading = false