1. 完成通知模块的迁移

2. 实现 excel 导出的基础功能
This commit is contained in:
YunaiV
2021-01-13 21:49:32 +08:00
parent 6a36fe65b2
commit 02ff516f0f
13 changed files with 47 additions and 100 deletions

View File

@ -655,7 +655,15 @@ export default {
}).then(function() {
return exportUser(queryParams);
}).then(response => {
this.download(response.msg);
// this.download(response.msg);
let blob = new Blob([response], {type: 'application/vnd.ms-excel'});
window.URL = window.URL || window.webkitURL;
let href = URL.createObjectURL(blob);
let downA = document.createElement("a");
downA.href = href;//
downA.download = '123321.xls';
downA.click();
window.URL.revokeObjectURL(href);
})
},
/** 导入按钮操作 */