菜单管理支持配置路由参数
This commit is contained in:
		| @@ -36,6 +36,11 @@ public class RouterVo | ||||
|      */ | ||||
|     private String component; | ||||
|  | ||||
|     /** | ||||
|      * 路由参数:如 {"id": 1, "name": "ry"} | ||||
|      */ | ||||
|     private String query; | ||||
|  | ||||
|     /** | ||||
|      * 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面 | ||||
|      */ | ||||
| @@ -101,6 +106,16 @@ public class RouterVo | ||||
|         this.component = component; | ||||
|     } | ||||
|  | ||||
|     public String getQuery() | ||||
|     { | ||||
|         return query; | ||||
|     } | ||||
|  | ||||
|     public void setQuery(String query) | ||||
|     { | ||||
|         this.query = query; | ||||
|     } | ||||
|  | ||||
|     public Boolean getAlwaysShow() | ||||
|     { | ||||
|         return alwaysShow; | ||||
|   | ||||
| @@ -151,6 +151,7 @@ public class SysMenuServiceImpl implements ISysMenuService | ||||
|             router.setName(getRouteName(menu)); | ||||
|             router.setPath(getRouterPath(menu)); | ||||
|             router.setComponent(getComponent(menu)); | ||||
|             router.setQuery(menu.getQuery()); | ||||
|             router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath())); | ||||
|             List<SysMenu> cMenus = menu.getChildren(); | ||||
|             if (!cMenus.isEmpty() && cMenus.size() > 0 && UserConstants.TYPE_DIR.equals(menu.getMenuType())) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user