From 49fc74be5d4c65d34d29237b05e26a1a0238715e Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 27 九月 2021 21:30:07 +0800 Subject: [PATCH] fix 修复更新问题 导出文件名乱码 --- ruoyi-ui/src/views/monitor/operlog/index.vue | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/ruoyi-ui/src/views/monitor/operlog/index.vue b/ruoyi-ui/src/views/monitor/operlog/index.vue index 243451a..35fd2b8 100644 --- a/ruoyi-ui/src/views/monitor/operlog/index.vue +++ b/ruoyi-ui/src/views/monitor/operlog/index.vue @@ -196,7 +196,7 @@ </template> <script> -import { list, delOperlog, cleanOperlog, exportOperlog } from "@/api/monitor/operlog"; +import { list, delOperlog, cleanOperlog } from "@/api/monitor/operlog"; export default { name: "Operlog", @@ -303,14 +303,7 @@ }, /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { - const queryParams = this.queryParams; - this.$modal.confirm('鏄惁纭瀵煎嚭鎵�鏈夋搷浣滄棩蹇楁暟鎹」锛�').then(() => { - this.exportLoading = true; - return exportOperlog(queryParams); - }).then(response => { - this.download(response.msg); - this.exportLoading = false; - }).catch(() => {}); + this.$download.excel('/monitor/operlog/export', this.queryParams); } } }; -- Gitblit v1.9.3