部门选择设置默认值

This commit is contained in:
RuoYi
2018-08-08 20:29:05 +08:00
parent 79a4f8b30b
commit c42f2d9f3a
4 changed files with 5 additions and 7 deletions

View File

@@ -134,7 +134,7 @@ public class DeptController extends BaseController
@GetMapping("/selectDeptTree/{deptId}")
public String selectDeptTree(@PathVariable("deptId") Long deptId, ModelMap mmap)
{
mmap.put("treeName", deptService.selectDeptById(deptId).getDeptName());
mmap.put("dept", deptService.selectDeptById(deptId));
return prefix + "/tree";
}