Commit 50862f989a511035dcb80c94d48ff50310b01b55
1 parent
b1b3be19
导出接口添加
Showing
1 changed file
with
2 additions
and
1 deletions
src/views/baseCaseHandling/index.vue
| @@ -283,9 +283,10 @@ export default { | @@ -283,9 +283,10 @@ export default { | ||
| 283 | } | 283 | } |
| 284 | this.exportBtnLoading = true; | 284 | this.exportBtnLoading = true; |
| 285 | request({ | 285 | request({ |
| 286 | - url: ``, | 286 | + url: `/Extend/BaseCaseHandling/Actions/Export`, |
| 287 | method: "POST", | 287 | method: "POST", |
| 288 | data: query, | 288 | data: query, |
| 289 | + responseType: 'blob', | ||
| 289 | }).then((res) => { | 290 | }).then((res) => { |
| 290 | const url = process.env.VUE_APP_BASE_API + res.data.url; | 291 | const url = process.env.VUE_APP_BASE_API + res.data.url; |
| 291 | const link = document.createElement("a"); | 292 | const link = document.createElement("a"); |