Commit 50e1624d authored by 赵啸非's avatar 赵啸非

添加菜单资源配置

parent d95d9eac
......@@ -61,6 +61,11 @@ public class MenuTreeSelect implements Serializable {
*/
private Integer hideChildrenInMenu;
/**
* 是否选中,0为未选中,1选中。默认0
*/
private Integer checked;
/**
* 子节点
*/
......@@ -76,6 +81,7 @@ public class MenuTreeSelect implements Serializable {
this.menuType = entity.getMenuType();
this.visible = entity.getVisible();
this.perms = entity.getPerms();
this.checked=entity.getChecked();
this.hideChildrenInMenu = entity.getHideChildrenInMenu();
if(!ObjectUtils.isEmpty(entity.getChildren())){
this.children = entity.getChildren().stream().map(MenuTreeSelect::new).collect(Collectors.toList());
......@@ -93,6 +99,7 @@ public class MenuTreeSelect implements Serializable {
node.setMenuType(jsonObject.getInteger("menuType"));
node.setVisible(jsonObject.getInteger("visible"));
node.setPerms(jsonObject.getString("perms"));
node.setChecked(jsonObject.getInteger("checked"));
node.setHideChildrenInMenu(jsonObject.getInteger("hideChildrenInMenu"));
JSONArray jsonArray = jsonObject.getJSONArray("children");
List<MenuTreeSelect> children = new ArrayList<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment