【menu】更新菜单是否隐藏属性

pull/3/head
fengshuonan 2021-02-07 20:51:11 +08:00
parent 774b2ba42f
commit 067b50fa39
4 changed files with 15 additions and 0 deletions

View File

@ -39,6 +39,11 @@ public class AntdSysMenuResponse {
*/
private String antdvIcon;
/**
* Y-N-
*/
private String visible;
/**
*
*/

View File

@ -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();

View File

@ -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

View File

@ -39,6 +39,11 @@ public class AntdvMenuItem implements AbstractTreeNode {
*/
private String name;
/**
*
*/
private Boolean invisible;
/**
*
*/