采用easyui tree编写简单角色权限代码的方法
首先每个管理员得对应一个角色,而角色可以操作多个栏目,这种情况下我们可以采用tree多选的方式: 在页面上js代码: $('#Permission').dialog({ title: '栏目权限', closed: false }); $('#rtt').tree({ url: 'ashx/RoleService.ashx?action=RoleTree&Rid=' + raw.ID,\n method: 'get', animate: true, checkbox: true }); $('#Rid').val(raw.ID); 用了一个dialog弹出进行实现ashx中传入
下载地址
用户评论