update 重构 将下载excel工具提取到全局

This commit is contained in:
疯狂的狮子li
2021-08-23 18:28:33 +08:00
parent dea627f02c
commit f91ebd93d2
12 changed files with 14 additions and 24 deletions

View File

@ -351,7 +351,6 @@ import { getToken } from "@/utils/auth";
import { treeselect } from "@/api/system/dept";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import { downLoadExcel } from "@/utils/download";
export default {
name: "User",
@ -661,7 +660,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
downLoadExcel('/system/user/export', this.queryParams);
this.downLoadExcel('/system/user/export', this.queryParams);
},
/** 导入按钮操作 */
handleImport() {
@ -670,7 +669,7 @@ export default {
},
/** 下载模板操作 */
importTemplate() {
downLoadExcel('/system/user/importTemplate');
this.downLoadExcel('/system/user/importTemplate');
},
// 文件上传中处理
handleFileUploadProgress(event, file, fileList) {