Commit 160a14d6439d3ac440c72e64c9516d2462c79548
1 parent
660cec73
添加注释
Showing
2 changed files
with
8 additions
and
1 deletions
src/main/java/com/bsth/service/sys/RoleService.java
| ... | ... | @@ -11,5 +11,11 @@ public interface RoleService extends BaseService<Role, Integer>{ |
| 11 | 11 | |
| 12 | 12 | Map<String, Object> roleInfo(Integer id); |
| 13 | 13 | |
| 14 | - Map<String, Object> settRoleResources(Integer roleId, String mIds); | |
| 14 | + /*** | |
| 15 | + * 根据角色id设置该角色拥有的资源权限 | |
| 16 | + * @param roleId 角色id | |
| 17 | + * @param rIds 资源id字符串 | |
| 18 | + * @return | |
| 19 | + */ | |
| 20 | + Map<String, Object> settRoleResources(Integer roleId, String rIds); | |
| 15 | 21 | } | ... | ... |
src/main/resources/static/assets/js/common.js
| ... | ... | @@ -57,6 +57,7 @@ function ajaxComplete(xhr, ts, succ){ |
| 57 | 57 | successHandle(JSON.parse(xhr.responseText), succ); |
| 58 | 58 | } |
| 59 | 59 | else if(ts == 'error'){ |
| 60 | + //添加自动跳转首页 | |
| 60 | 61 | layer.alert(xhr.responseText + '<br> <span id="goIndex" style="color: #ff1f08;font-weight: bold;font-size: large;">1</span> 秒后回到首页', {icon: 2, title: '操作失败'}); |
| 61 | 62 | setTimeout(function(){ |
| 62 | 63 | window.location.href = '/'; | ... | ... |