From 3dbbf41e66f433784cda81b56b8b97917f284ff5 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期三, 26 二月 2025 17:10:22 +0800 Subject: [PATCH] 菜单只看我功能添加 --- ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java index ae25df2..33818ce 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java @@ -11,7 +11,7 @@ /** * Treeselect鏍戠粨鏋勫疄浣撶被 - * + * * @author ruoyi */ public class TreeSelect implements Serializable @@ -23,6 +23,12 @@ /** 鑺傜偣鍚嶇О */ private String label; + + /** 鏄惁鍙互閫夋嫨浠呯湅鎴�, 0:鍚�, 1:鏄� */ + private Integer isRersonalButton; + + /** 鏄惁纭鍙湅鎴�, 0:鍚�, 1:鏄� */ + private Integer isRersonal; /** 鑺傜偣绂佺敤 */ private boolean disabled = false; @@ -48,6 +54,8 @@ { this.id = menu.getMenuId(); this.label = menu.getMenuName(); + this.isRersonalButton = menu.getIsRersonalButton(); + this.isRersonal = menu.getIsRersonal(); this.children = menu.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); } @@ -90,4 +98,24 @@ { this.children = children; } + + public Integer getIsRersonalButton() + { + return isRersonalButton; + } + + public void setIsRersonalButton(Integer isRersonalButton) + { + this.isRersonalButton = isRersonalButton; + } + + public Integer getIsRersonal() + { + return isRersonal; + } + + public void setIsRersonal(Integer isRersonalButton) + { + this.isRersonal = isRersonal; + } } -- Gitblit v1.9.3