ruoyi-ui/src/views/economy/index.vue
@@ -812,10 +812,9 @@ }, /** 导出按钮操作 */ handleExport() { this.download('/zfEconomy/export', { this.download('/zfEconomy/model', { ...this.queryParams }, `zfEconomy_${new Date().getTime()}.xlsx`) } }, /** 导入操作*/ handleEnport(params){ @@ -823,17 +822,17 @@ 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>