update 封装通用下载方法简化下载使用

This commit is contained in:
疯狂的狮子li
2021-09-27 17:24:37 +08:00
parent 75b22e9a23
commit 99dcbe0207
17 changed files with 44 additions and 116 deletions

View File

@ -334,7 +334,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
this.downLoadExcel('/system/config/export', this.queryParams);
this.$download.excel('/system/config/export', this.queryParams);
},
/** 刷新缓存按钮操作 */
handleRefreshCache() {

View File

@ -380,7 +380,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
this.downLoadExcel('/system/dict/data/export', this.queryParams);
this.$download.excel('/system/dict/data/export', this.queryParams);
}
}
};

View File

@ -338,7 +338,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
this.downLoadExcel('/system/dict/type/export', this.queryParams);
this.$download.excel('/system/dict/type/export', this.queryParams);
},
/** 刷新缓存按钮操作 */
handleRefreshCache() {

View File

@ -188,7 +188,6 @@
<script>
import { listOss, delOss, changePreviewListResource } from "@/api/system/oss";
import { downLoadOss } from "@/utils/download";
export default {
name: "Oss",
@ -325,7 +324,7 @@ export default {
},
/** 下载按钮操作 */
handleDownload(row) {
downLoadOss(row.ossId)
this.$download.oss(row.ossId)
},
/** 删除按钮操作 */
handleDelete(row) {

View File

@ -305,7 +305,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
this.downLoadExcel('/system/post/export', this.queryParams);
this.$download.excel('/system/post/export', this.queryParams);
}
}
};

View File

@ -613,7 +613,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
this.downLoadExcel('/system/role/export', this.queryParams);
this.$download.excel('/system/role/export', this.queryParams);
}
}
};

View File

@ -643,7 +643,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
this.downLoadExcel('/system/user/export', this.queryParams);
this.$download.excel('/system/user/export', this.queryParams);
},
/** 导入按钮操作 */
handleImport() {
@ -652,7 +652,7 @@ export default {
},
/** 下载模板操作 */
importTemplate() {
this.downLoadExcel('/system/user/importTemplate');
this.$download.excel('/system/user/importTemplate');
},
// 文件上传中处理
handleFileUploadProgress(event, file, fileList) {