Commit 6bf77f61 by RuoYi

菜单选择设置默认值

parent c42f2d9f
...@@ -178,7 +178,7 @@ public class MenuController extends BaseController ...@@ -178,7 +178,7 @@ public class MenuController extends BaseController
@GetMapping("/selectMenuTree/{menuId}") @GetMapping("/selectMenuTree/{menuId}")
public String selectMenuTree(@PathVariable("menuId") Long menuId, ModelMap mmap) public String selectMenuTree(@PathVariable("menuId") Long menuId, ModelMap mmap)
{ {
mmap.put("treeName", menuService.selectMenuById(menuId).getMenuName()); mmap.put("menu", menuService.selectMenuById(menuId));
return prefix + "/tree"; return prefix + "/tree";
} }
} }
\ No newline at end of file
...@@ -8,8 +8,8 @@ body{height:auto;font-family: "Microsoft YaHei";} ...@@ -8,8 +8,8 @@ body{height:auto;font-family: "Microsoft YaHei";}
button{font-family: "SimSun","Helvetica Neue",Helvetica,Arial;} button{font-family: "SimSun","Helvetica Neue",Helvetica,Arial;}
</style> </style>
<body class="hold-transition box box-main"> <body class="hold-transition box box-main">
<input id="treeId" name="treeId" type="hidden"/> <input id="treeId" name="treeId" type="hidden" th:value="${menu.menuId}"/>
<input id="treeName" name="treeName" type="hidden" th:value="${treeName}"/> <input id="treeName" name="treeName" type="hidden" th:value="${menu.menuName}"/>
<div class="wrapper"><div class="treeShowHideButton" onclick="search();"> <div class="wrapper"><div class="treeShowHideButton" onclick="search();">
<label id="btnShow" title="显示搜索" style="display:none;"></label> <label id="btnShow" title="显示搜索" style="display:none;"></label>
<label id="btnHide" title="隐藏搜索"></label> <label id="btnHide" title="隐藏搜索"></label>
......
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