|
@@ -215,10 +215,12 @@ public class SysRoleController extends BaseController {
|
|
|
* 获取角色选择框列表
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:query')")
|
|
|
- @GetMapping("/optionselect")
|
|
|
+ @PostMapping("/optionselect")
|
|
|
@Log(title = "角色管理", businessType = BusinessType.OTHER)
|
|
|
- public AjaxResult optionselect() {
|
|
|
- return success(roleService.selectRoleAll());
|
|
|
+ public AjaxResult optionselect(@RequestBody SysRoleRequestVo vo) {
|
|
|
+ vo = (SysRoleRequestVo) dataScoreUtil.setDataScore(getUserId(), vo);
|
|
|
+ List<SysRole> sysRoleList = roleService.roleList(vo);
|
|
|
+ return success(sysRoleList);
|
|
|
}
|
|
|
|
|
|
/**
|