rev:菜单系统type不一致问题
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
sys_menu
|
sys_menu
|
||||||
WHERE
|
WHERE
|
||||||
system_type = #{systemType}
|
system_type = #{systemType}
|
||||||
and type != '4'
|
and type != '4' and path is not null and path <![CDATA[<>]]> ''
|
||||||
and
|
and
|
||||||
menu_id IN (
|
menu_id IN (
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ public class MenuDto extends BaseDTO implements Serializable {
|
|||||||
|
|
||||||
private List<MenuDto> children;
|
private List<MenuDto> children;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1是系统2是目录3是菜单 4权限
|
||||||
|
*/
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
private String permission;
|
private String permission;
|
||||||
|
|||||||
@@ -416,7 +416,8 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
|
|||||||
if (!menuDTO.getIframe()) {
|
if (!menuDTO.getIframe()) {
|
||||||
if (pid.equals(menuDTO.getPid())) {
|
if (pid.equals(menuDTO.getPid())) {
|
||||||
menuVo.setComponent(StrUtil.isEmpty(menuDTO.getComponent()) ? "Layout" : menuDTO.getComponent());
|
menuVo.setComponent(StrUtil.isEmpty(menuDTO.getComponent()) ? "Layout" : menuDTO.getComponent());
|
||||||
} else if (!pid.equals(menuDTO.getPid()) && "0".equals(menuDTO.getType())) {
|
//"2".equals(menuDTO.getType() 判断是不是目录
|
||||||
|
} else if (!pid.equals(menuDTO.getPid()) && "2".equals(menuDTO.getType())) {
|
||||||
menuVo.setComponent(StrUtil.isEmpty(menuDTO.getComponent()) ? "ParentView" : menuDTO.getComponent());
|
menuVo.setComponent(StrUtil.isEmpty(menuDTO.getComponent()) ? "ParentView" : menuDTO.getComponent());
|
||||||
|
|
||||||
} else if (!StrUtil.isEmpty(menuDTO.getComponent())) {
|
} else if (!StrUtil.isEmpty(menuDTO.getComponent())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user