Пример #1
0
  /**
   * 菜单详情
   *
   * @param model
   * @param id
   * @return
   */
  @RequestMapping("/{id}/toMenuDetail")
  public String toMenuDetail(Model model, @PathVariable String id) {
    SysMenu menu = sysMenuService.findOne(id);
    SysMenu parent = sysMenuService.findOne(menu.getParent_fk());
    Map<String, Object> permission = sysMenuService.getMenuPermissionById(menu.getPermission_fk());

    model.addAttribute("menu", menu);
    model.addAttribute("parent", parent);
    model.addAttribute("permission", permission);
    return "sys/sys_menu_detail";
  }
Пример #2
0
  /**
   * 树 编辑页面
   *
   * @param model
   * @param id
   * @return
   */
  @RequestMapping("/{id}/toTreeEdit")
  public String toTreeEdit(Model model, @PathVariable String id) {
    SysMenu menu = sysMenuService.findOne(id);

    model.addAttribute("tree", menu);
    return "sys/tree_edit";
  }
Пример #3
0
  /**
   * 菜单编辑页面
   *
   * @param model
   * @param id
   * @return
   */
  @RequestMapping("/{id}/toMenuEdit")
  public String toMenuEdit(Model model, @PathVariable String id) {
    SysMenu menu = sysMenuService.findOne(id);
    List<Map<String, Object>> permissions = sysMenuService.getMenuPermissions();
    List<Map<String, Object>> parents = sysMenuService.getMenuParents();

    model.addAttribute("menu", menu);
    model.addAttribute("permissions", permissions);
    model.addAttribute("parents", parents);
    return "sys/sys_menu_edit";
  }