角色指派部门功能
This commit is contained in:
parent
79795dfaac
commit
d405ea2542
|
@ -339,5 +339,4 @@
|
|||
Group.saveGroupsByRoleId = function (roleId,groupIds,callback) {
|
||||
processGroupsData({ Id: roleId, callback: callback, method: "PUT", data: { type: "role", groupIds: groupIds } });
|
||||
};
|
||||
};
|
||||
})(jQuery);
|
|
@ -38,21 +38,15 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
id: 'btnSubmitRoleGroup',
|
||||
id: 'btnSubmitUserGroup',
|
||||
click: function (row) {
|
||||
var roleId = row.ID;
|
||||
var groupIds = $('#dialogGroup :checked').map(function (index, element) {
|
||||
return $(element).val();
|
||||
}).toArray().join(',');
|
||||
Group.saveGroupsByRoleId(roleId, groupIds, function (result) {
|
||||
if (result) {
|
||||
$('#dialogGroup').modal('hide');
|
||||
swal("成功", "修改部门", "success");
|
||||
}
|
||||
else {
|
||||
swal("失败", "修改部门", "error");
|
||||
}
|
||||
});
|
||||
Group.saveGroupsByRoleId(roleId, groupIds, { modal: 'dialogGroup' });
|
||||
|
||||
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
|
|
@ -295,5 +295,24 @@ namespace Bootstrap.DataAccess
|
|||
{
|
||||
CacheManager.Clear(key => string.IsNullOrEmpty(cacheKey) || key == cacheKey);
|
||||
}
|
||||
/// <summary>
|
||||
/// 查询某个部门所拥有的角色
|
||||
/// </summary>
|
||||
/// <param name="menuId"></param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable<Role> RetrieveRolesByGroupId(int groupId)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存部门角色关系
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="value"></param>
|
||||
/// <returns></returns>
|
||||
public static bool SaveRolesByGroupId(int id, string value)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue