Эх сурвалжийг харах

update 重构 将下载excel工具提取到全局

疯狂的狮子li 3 жил өмнө
parent
commit
bf86e5979b

+ 1 - 2
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm

@@ -308,7 +308,6 @@
 
 <script>
 import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName} } from "@/api/${moduleName}/${businessName}";
-import { downLoadExcel } from "@/utils/download";
 
 export default {
   name: "${BusinessName}",
@@ -601,7 +600,7 @@ export default {
 #end
     /** 导出按钮操作 */
     handleExport() {
-      downLoadExcel('/${moduleName}/${businessName}/export', this.queryParams);
+      this.downLoadExcel('/${moduleName}/${businessName}/export', this.queryParams);
     }
   }
 };