// 跳转到menu.jsp public String initMenu() { switch (flag) { case "R": { // retrieve menu = systemService.getMenu(menu); return "menuR"; } case "U": { // update menu = systemService.getMenu(menu); return "menuR"; } case "D": { // delete jsonObject = systemService.deleteMenu(menu); return JSON; } case "ASL": { // add same level return "menuR"; } case "ANL": { // add next level return "menuR"; } default: { return "menuL"; } } }
// 异步加载全部角色信息 public String getRoleAll() { jsonObject = systemService.getRoleAll(systemRole, getRowBounds()); return JSON; }
// 异步加载[该菜单所属]角色信息 public String getRole() { jsonObject = systemService.getRoleRecord(menu); return JSON; }
// 异步加载资源信息 public String getAccessPermission() { jsonObject = systemService.getAccessPermission(menu); return JSON; }
// 保存菜单信息 public String saveMenu() { jsonObject = systemService.saveMenu(menu, changes); return JSON; }
public String deleteRole() { jsonObject = systemService.deleteRole(ids); return JSON; }
// 异步加载tree public String getTreeNode() { jsonObject = systemService.getTreeNode(); return JSON; }
public String initRoleEdit() { systemRole = systemService.getRoleRecord(systemRole); return "roleEdit"; }
public String saveRoleEdit() { jsonObject = systemService.saveRoleEdit(systemRole); return JSON; }
public String initRoleDetail() { systemRole = systemService.getRoleRecord(systemRole); return "roleDetail"; }
// 异步加载列表 public String getUserList() { jsonObject = systemService.getUserList(user, getRowBounds()); return JSON; }
public String saveUserEdit() { jsonObject = systemService.saveUserEdit(user); return JSON; }
public String initUserEdit() { systemRoleList = systemService.getRoleList(); user = systemService.getUserRecord(user); return "userEdit"; }
// *--------------------------------------- // *----------- 用户管理 ↓------------------- // *--------------------------------------- public String initUserAdd() { systemRoleList = systemService.getRoleList(); return "userAdd"; }