mirror of https://gitee.com/stylefeng/roses
【menu】更新菜单是否隐藏属性
parent
774b2ba42f
commit
067b50fa39
|
@ -39,6 +39,11 @@ public class AntdSysMenuResponse {
|
|||
*/
|
||||
private String antdvIcon;
|
||||
|
||||
/**
|
||||
* 是否显示,Y-显示,N-不显示
|
||||
*/
|
||||
private String visible;
|
||||
|
||||
/**
|
||||
* 子节点(表中不存在,用于构造树)
|
||||
*/
|
||||
|
|
|
@ -44,6 +44,9 @@ public class AntdMenusFactory {
|
|||
antdvMenuItem.setRouter(antdSysMenuResponse.getAntdvRouter());
|
||||
antdvMenuItem.setIcon(antdSysMenuResponse.getAntdvIcon());
|
||||
|
||||
// 填充是否隐藏
|
||||
antdvMenuItem.setInvisible(YesOrNotEnum.N.getCode().equals(antdSysMenuResponse.getVisible()));
|
||||
|
||||
// 填充哪个角色绑定了这个菜单
|
||||
List<SimpleRoleInfo> roles = antdSysMenuResponse.getRoles();
|
||||
AuthorityItem authorityItem = new AuthorityItem();
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<result column="menu_name" property="menuName"/>
|
||||
<result column="antdv_router" property="antdvRouter"/>
|
||||
<result column="antdv_icon" property="antdvIcon"/>
|
||||
<result column="visible" property="visible"/>
|
||||
<collection property="roles" ofType="cn.stylefeng.roses.kernel.auth.api.pojo.login.basic.SimpleRoleInfo">
|
||||
<id column="role_id" property="roleId"/>
|
||||
<result column="role_name" property="roleName"/>
|
||||
|
@ -21,6 +22,7 @@
|
|||
sm.menu_name,
|
||||
sm.antdv_router,
|
||||
sm.antdv_icon,
|
||||
sm.visible,
|
||||
sr.role_id,
|
||||
sr.role_name,
|
||||
sr.role_code
|
||||
|
|
|
@ -39,6 +39,11 @@ public class AntdvMenuItem implements AbstractTreeNode {
|
|||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 是否隐藏
|
||||
*/
|
||||
private Boolean invisible;
|
||||
|
||||
/**
|
||||
* 路由信息
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue