新增通用方法简化下载使用

This commit is contained in:
RuoYi
2021-09-27 10:38:29 +08:00
parent 02b95f95a8
commit ded99502ae
20 changed files with 70 additions and 82 deletions

View File

@ -515,7 +515,7 @@ export default {
this.exportLoading = true;
return exportJob(queryParams);
}).then(response => {
this.download(response.msg);
this.$download.name(response.msg);
this.exportLoading = false;
}).catch(() => {});
}

View File

@ -298,7 +298,7 @@ export default {
this.exportLoading = true;
return exportJobLog(queryParams);
}).then(response => {
this.download(response.msg);
this.$download.name(response.msg);
this.exportLoading = false;
}).catch(() => {});
}

View File

@ -221,7 +221,7 @@ export default {
this.exportLoading = true;
return exportLogininfor(queryParams);
}).then(response => {
this.download(response.msg);
this.$download.name(response.msg);
this.exportLoading = false;
}).catch(() => {});
}

View File

@ -308,7 +308,7 @@ export default {
this.exportLoading = true;
return exportOperlog(queryParams);
}).then(response => {
this.download(response.msg);
this.$download.name(response.msg);
this.exportLoading = false;
}).catch(() => {});
}