修正因合并多对多映射造成的BUG

This commit is contained in:
yubaolee
2015-11-30 14:54:38 +08:00
parent 464f04bb32
commit afceafb00c
13 changed files with 268 additions and 192 deletions

View File

@@ -8,9 +8,7 @@
<form action="/RoleManager/Add" class="pageForm" data-toggle="validate">
<table class="table table-condensed table-hover">
<tbody>
<tr>
<td align="center"><h3>* 添加</h3></td>
</tr>
<tr>
<td>
@Html.HiddenFor(m => m.Id)

View File

@@ -36,7 +36,8 @@
toolbarItem: 'refresh, |, del',
toolbarCustom: '<a href="/RoleManager/Add" class="btn btn-green" data-icon ="plus" ' +
'data-toggle="dialog" data-id="dialog-mask" data-mask="true" data-on-close="refreshGrid">添加</a>' +
'<button class=" btn-green" onclick="editRole()" data-icon="pencil" type="button">编辑</button>',
'<button class=" btn-green" onclick="editRole()" data-icon="pencil" type="button">编辑</button>'+
'<button type="button" class="btn btn-green" onclick="openModuleAccess(this)">角色模块</button>',
columns: [
{
name: 'Id',
@@ -174,5 +175,22 @@
$('#@_gridId').datagrid('refresh');
// loadDataGrid();
}
//用户模块授权按钮
function openModuleAccess(obj) {
var selected = getSelected(2);
if (selected == null) return;
$(obj).dialog({
id: 'accessRoleModule',
url: '/ModuleManager/LookupMultiForRole',
title: '为角色分配模块',
data: {
roleid: selected
}
});
}
//@@ sourceURL=RoleManagerIndex.js
</script>