From 2af534eea471f4adb104906c7a814bcc66d4d68d Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 13 九月 2021 13:03:58 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue into dev --- ruoyi-ui/src/views/system/dict/index.vue | 17 +++-------------- 1 files changed, 3 insertions(+), 14 deletions(-) diff --git a/ruoyi-ui/src/views/system/dict/index.vue b/ruoyi-ui/src/views/system/dict/index.vue index b80dd37..0bce088 100644 --- a/ruoyi-ui/src/views/system/dict/index.vue +++ b/ruoyi-ui/src/views/system/dict/index.vue @@ -193,7 +193,7 @@ </template> <script> -import { listType, getType, delType, addType, updateType, exportType, refreshCache } from "@/api/system/dict/type"; +import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type"; export default { name: "Dict", @@ -346,18 +346,7 @@ }, /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { - const queryParams = this.queryParams; - this.$confirm('鏄惁纭瀵煎嚭鎵�鏈夌被鍨嬫暟鎹」?', "璀﹀憡", { - confirmButtonText: "纭畾", - cancelButtonText: "鍙栨秷", - type: "warning" - }).then(() => { - this.exportLoading = true; - return exportType(queryParams); - }).then(response => { - this.download(response.msg); - this.exportLoading = false; - }).catch(() => {}); + this.downLoadExcel('/system/dict/type/export', this.queryParams); }, /** 鍒锋柊缂撳瓨鎸夐挳鎿嶄綔 */ handleRefreshCache() { @@ -367,4 +356,4 @@ } } }; -</script> +</script> \ No newline at end of file -- Gitblit v1.9.3