优化代码生成导出模板名称

master
RuoYi 4 years ago
parent c8df1f5e1f
commit fe2ccbdc1b
  1. 2
      ruoyi-generator/src/main/resources/vm/java/controller.java.vm
  2. 2
      ruoyi-ui/src/components/TopNav/index.vue

@ -66,7 +66,7 @@ public class ${ClassName}Controller extends BaseController
{ {
List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class); ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class);
return util.exportExcel(list, "${functionName}"); return util.exportExcel(list, "${functionName}数据");
} }
/** /**

@ -47,7 +47,7 @@ export default {
topMenus() { topMenus() {
let topMenus = []; let topMenus = [];
this.routers.map((menu) => { this.routers.map((menu) => {
if (menu.hidden === false) { if (menu.hidden !== true) {
topMenus.push(menu); topMenus.push(menu);
} }
}); });

Loading…
Cancel
Save