mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-04-10 20:43:15 +08:00
update 优化 菜单管理 增加激活菜单与扩展属性字段
This commit is contained in:
@@ -95,6 +95,16 @@ public class SysMenu extends BaseEntity {
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* 激活菜单路径
|
||||
*/
|
||||
private String activeMenu;
|
||||
|
||||
/**
|
||||
* 扩展字段
|
||||
*/
|
||||
private String ext;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
|
||||
@@ -108,6 +108,18 @@ public class SysMenuBo implements Serializable {
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* 激活菜单路径
|
||||
*/
|
||||
@Size(min = 0, max = 255, message = "激活菜单路径长度不能超过{max}个字符")
|
||||
private String activeMenu;
|
||||
|
||||
/**
|
||||
* 扩展字段
|
||||
*/
|
||||
@Size(min = 0, max = 2000, message = "扩展字段长度不能超过{max}个字符")
|
||||
private String ext;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
|
||||
@@ -93,6 +93,16 @@ public class SysMenuVo implements Serializable {
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* 激活菜单路径
|
||||
*/
|
||||
private String activeMenu;
|
||||
|
||||
/**
|
||||
* 扩展字段
|
||||
*/
|
||||
private String ext;
|
||||
|
||||
/**
|
||||
* 创建部门
|
||||
*/
|
||||
|
||||
@@ -167,7 +167,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
||||
router.setPath(menu.getRouterPath());
|
||||
router.setComponent(menu.getComponentInfo());
|
||||
router.setQuery(menu.getQueryParam());
|
||||
router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals(SystemConstants.NO, menu.getIsCache()), menu.getPath(), menu.getRemark()));
|
||||
router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals(SystemConstants.NO, menu.getIsCache()), menu.getPath(), menu.getActiveMenu()));
|
||||
List<SysMenu> cMenus = menu.getChildren();
|
||||
if (CollUtil.isNotEmpty(cMenus) && SystemConstants.TYPE_DIR.equals(menu.getMenuType())) {
|
||||
router.setAlwaysShow(true);
|
||||
@@ -181,7 +181,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
||||
children.setPath(menu.getPath());
|
||||
children.setComponent(menu.getComponent());
|
||||
children.setName(frameName);
|
||||
children.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals(SystemConstants.NO, menu.getIsCache()), menu.getPath(), menu.getRemark()));
|
||||
children.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals(SystemConstants.NO, menu.getIsCache()), menu.getPath(), menu.getActiveMenu()));
|
||||
children.setQuery(menu.getQueryParam());
|
||||
childrenList.add(children);
|
||||
router.setChildren(childrenList);
|
||||
|
||||
Reference in New Issue
Block a user