v3.8.0 新增通用方法简化下载使用

This commit is contained in:
YunaiV
2022-02-17 14:28:43 +08:00
parent fee6d00ecf
commit 02a0ab6d6d
28 changed files with 78 additions and 90 deletions

View File

@ -585,7 +585,7 @@ export default {
this.exportLoading = true;
return exportUser(queryParams);
}).then(response => {
this.downloadExcel(response, '用户数据.xls');
this.$download.excel(response, '用户数据.xls');
this.exportLoading = false;
}).catch(() => {});
},
@ -597,7 +597,7 @@ export default {
/** 下载模板操作 */
importTemplate() {
importTemplate().then(response => {
this.downloadExcel(response, '用户导入模板.xls');
this.$download.excel(response, '用户导入模板.xls');
});
},
// 文件上传中处理