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

@@ -206,7 +206,7 @@ export default {
this.exportLoading = true;
return exportApiAccessLogExcel(params);
}).then(response => {
this.downloadExcel(response, 'API 访问日志.xls');
this.$download.excel(response, 'API 访问日志.xls');
this.exportLoading = false;
}).catch(() => {});
}

View File

@@ -224,7 +224,7 @@ export default {
this.exportLoading = true;
return exportApiErrorLogExcel(params);
}).then(response => {
this.downloadExcel(response, 'API 错误日志.xls');
this.$download.excel(response, 'API 错误日志.xls');
this.exportLoading = false;
}).catch(() => {});
}

View File

@@ -268,7 +268,7 @@ export default {
this.exportLoading = true;
return exportConfig(queryParams);
}).then(response => {
this.downloadExcel(response, '参数配置.xls');
this.$download.excel(response, '参数配置.xls');
this.exportLoading = false;
}).catch(() => {});
},

View File

@@ -367,7 +367,7 @@ export default {
this.exportLoading = true;
return exportJob(queryParams);
}).then(response => {
this.downloadExcel(response, '定时任务.xls');
this.$download.excel(response, '定时任务.xls');
this.exportLoading = false;
}).catch(() => {});
}

View File

@@ -169,7 +169,7 @@ export default {
this.exportLoading = true;
return exportJobLogExcel(params);
}).then(response => {
this.downloadExcel(response, '定时任务日志.xls');
this.$download.excel(response, '定时任务日志.xls');
this.exportLoading = false;
}).catch(() => {});
}