From db3d71b62fcd859bf5e2c75b107c1d28bd977632 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期日, 23 六月 2024 18:23:45 +0800 Subject: [PATCH] 修改了333之前的报错 --- ruoyi-ui/src/views/economy/index.vue | 35 +++++++++++++++++------------------ 1 files changed, 17 insertions(+), 18 deletions(-) diff --git a/ruoyi-ui/src/views/economy/index.vue b/ruoyi-ui/src/views/economy/index.vue index dc6316d..5aff8d3 100644 --- a/ruoyi-ui/src/views/economy/index.vue +++ b/ruoyi-ui/src/views/economy/index.vue @@ -812,28 +812,27 @@ }, /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { - this.download('/zfEconomy/export', { + this.download('/zfEconomy/model', { ...this.queryParams }, `zfEconomy_${new Date().getTime()}.xlsx`) - } + }, + /** 瀵煎叆鎿嶄綔*/ + handleEnport(params){ + var file = params.file; + var formData = new FormData(); + formData.append('excelImport', file); + let _this = this + + enload(formData).then(response => { + _this.getList(); + Message({ message: "瀵煎叆鎴愬姛", type: 'warning' }) + }).catch(err) + { + Message({ message: "瀵煎叆澶辫触", type: 'error' }) + } + }, }, - /** 瀵煎叆鎿嶄綔*/ - handleEnport(params){ - var file = params.file; - var formData = new FormData(); - formData.append('excelImport', file); - let _this = this - alert(file) - enload(formData).then(response => { - _this.getList(); - Message({ message: "瀵煎叆鎴愬姛", type: 'warning' }) - }).catch(err) - { - Message({ message: "瀵煎叆澶辫触", type: 'error' }) - } - - } }; </script> -- Gitblit v1.9.1