87,907
社区成员
发帖
与我相关
我的任务
分享
window.g && window.g.set('onError', function(ex){
window.location.href='<c:url value="/error/' + ex.status + '"/>';
});
window.g && window.g.set('columns', [
{
display : '角色编号',
name : 'roleId',
minWidth:120,
align : 'center'
},
{
display : '角色描述',
name : 'roleDescription',
minWidth:120,
align : 'center'
},
{
display : '角色名称',
name : 'roleName',
minWidth:120,
align : 'center'
},
{
display : '操作',
minWidth:250,
align : 'center',
render:function(item){
var auth = $(document.createElement("div"));
auth.attr("class", "td-manage");
auth.append(authView('查看角色', '<c:url value="/system/role/view"/>', {roleId : item.roleId}));
auth.append(authEdit('编辑角色', '<c:url value="/system/role/update"/>', {roleId : item.roleId}));
auth.append(authDel('<c:url value="/system/role/delete.jsonp"/>', {roleId : item.roleId}));
return auth.prop("outerHTML");
}
}
]);