87,914
社区成员
发帖
与我相关
我的任务
分享
$('#roleCheck001').click(function() {
var $checkedIds = $(".datagrid-btable input[name='id']:enabled:checked");
var ids=[];
$checkedIds.each(function(){
if(ids != null && ids != "" && ids.length > 1){
ids = ids + ",";
}
ids = ids + $(this).attr("value");
});
if(ids.length>0){
$('#roleCheckDlg001').dialog({
title: '角色管理_批量权限分配',
iconCls: 'icon-search',
width: 720,
height: 500,
modal: true,
dialog:"center",
href: "role/power/updateMorePage.do?ids="+ids+"&rel=${param.rel}_roleactions",
});
}else{
Msg.topCenter({
title:"提示",
msg:"至少勾选一个角色"
});
}
});
<div id="roleCheckDlg001"></div>