| | |
| | | router.setName(getRouteName(menu));
|
| | | router.setPath(getRouterPath(menu));
|
| | | router.setComponent(getComponent(menu));
|
| | | router.setAppComponent(menu.getAppComponent());
|
| | | router.setQuery(menu.getQuery());
|
| | | router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath()));
|
| | | List<SysMenu> cMenus = menu.getChildren();
|
| | |
| | | List<RouterVo> childrenList = new ArrayList<RouterVo>();
|
| | | RouterVo children = new RouterVo();
|
| | | children.setPath(menu.getPath());
|
| | | children.setAppComponent(menu.getAppComponent());
|
| | | children.setComponent(menu.getComponent());
|
| | | children.setName(getRouteName(menu.getRouteName(), menu.getPath()));
|
| | | children.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath()));
|
| | |
| | | RouterVo children = new RouterVo();
|
| | | String routerPath = innerLinkReplaceEach(menu.getPath());
|
| | | children.setPath(routerPath);
|
| | | children.setAppComponent(menu.getAppComponent());
|
| | | children.setComponent(UserConstants.INNER_LINK);
|
| | | children.setName(getRouteName(menu.getRouteName(), routerPath));
|
| | | children.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), menu.getPath()));
|
| | |
| | | /**
|
| | | * 获取路由名称,如没有配置路由名称则取路由地址
|
| | | *
|
| | | * @param routerName 路由名称
|
| | | * @param name 路由名称
|
| | | * @param path 路由地址
|
| | | * @return 路由名称(驼峰格式)
|
| | | */
|
| | |
| | | return menu.getParentId().intValue() == 0 && UserConstants.TYPE_MENU.equals(menu.getMenuType())
|
| | | && menu.getIsFrame().equals(UserConstants.NO_FRAME);
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * 是否为parent_view组件
|
| | | *
|