保存排序记录日志添加权限
This commit is contained in:
parent
428043e835
commit
536da65a97
|
|
@ -128,6 +128,19 @@ public class SysDeptController extends BaseController
|
|||
return toAjax(deptService.updateDept(dept));
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存部门排序
|
||||
*/
|
||||
@Log(title = "保存部门排序", businessType = BusinessType.UPDATE)
|
||||
@RequiresPermissions("system:dept:edit")
|
||||
@PostMapping("/updateSort")
|
||||
@ResponseBody
|
||||
public AjaxResult updateSort(@RequestParam String[] deptIds, @RequestParam String[] orderNums)
|
||||
{
|
||||
deptService.updateDeptSort(deptIds, orderNums);
|
||||
return success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
|
|
@ -187,15 +200,4 @@ public class SysDeptController extends BaseController
|
|||
List<Ztree> ztrees = deptService.selectDeptTreeExcludeChild(dept);
|
||||
return ztrees;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存部门排序
|
||||
*/
|
||||
@PostMapping("/updateSort")
|
||||
@ResponseBody
|
||||
public AjaxResult updateSort(@RequestParam String[] deptIds, @RequestParam String[] orderNums)
|
||||
{
|
||||
deptService.updateDeptSort(deptIds, orderNums);
|
||||
return success();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,6 +147,8 @@ public class SysMenuController extends BaseController
|
|||
/**
|
||||
* 保存菜单排序
|
||||
*/
|
||||
@Log(title = "保存菜单排序", businessType = BusinessType.UPDATE)
|
||||
@RequiresPermissions("system:menu:edit")
|
||||
@PostMapping("/updateSort")
|
||||
@ResponseBody
|
||||
public AjaxResult updateSort(@RequestParam String[] menuIds, @RequestParam String[] orderNums)
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
<a class="btn btn-primary" onclick="$.operate.edit()" shiro:hasPermission="system:dept:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-info" onclick="saveSort()">
|
||||
<a class="btn btn-info" onclick="saveSort()" shiro:hasPermission="system:dept:edit">
|
||||
<i class="fa fa-sort-amount-asc"></i> 保存排序
|
||||
</a>
|
||||
<a class="btn btn-default" id="expandAllBtn">
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
<a class="btn btn-primary" onclick="$.operate.edit()" shiro:hasPermission="system:menu:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-info" onclick="saveSort()">
|
||||
<a class="btn btn-info" onclick="saveSort()" shiro:hasPermission="system:menu:edit">
|
||||
<i class="fa fa-sort-amount-asc"></i> 保存排序
|
||||
</a>
|
||||
<a class="btn btn-default" id="expandAllBtn">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user