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

@ -281,7 +281,6 @@
<script>
import { listJob, getJob, delJob, addJob, updateJob, runJob, changeJobStatus } from "@/api/monitor/job";
import { downLoadExcel } from "@/utils/download";
export default {
name: "Job",
@ -506,7 +505,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
downLoadExcel('/monitor/job/export', this.queryParams);
this.downLoadExcel('/monitor/job/export', this.queryParams);
}
}
};

View File

@ -179,7 +179,6 @@
<script>
import { getJob } from "@/api/monitor/job";
import { listJobLog, delJobLog, cleanJobLog } from "@/api/monitor/jobLog";
import { downLoadExcel } from "@/utils/download";
export default {
name: "JobLog",
@ -311,7 +310,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
downLoadExcel('/monitor/jobLog/export', this.queryParams);
this.downLoadExcel('/monitor/jobLog/export', this.queryParams);
}
}
};

View File

@ -120,7 +120,6 @@
<script>
import { list, delLogininfor, cleanLogininfor } from "@/api/monitor/logininfor";
import { downLoadExcel } from "@/utils/download";
export default {
name: "Logininfor",
@ -229,7 +228,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
downLoadExcel('/monitor/logininfor/export', this.queryParams);
this.downLoadExcel('/monitor/logininfor/export', this.queryParams);
}
}
};

View File

@ -189,7 +189,6 @@
<script>
import { list, delOperlog, cleanOperlog } from "@/api/monitor/operlog";
import { downLoadExcel } from "@/utils/download";
export default {
name: "Operlog",
@ -317,7 +316,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
downLoadExcel('/monitor/operlog/export', this.queryParams);
this.downLoadExcel('/monitor/operlog/export', this.queryParams);
}
}
};