mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 14:04:41 +08:00
routine update
This commit is contained in:
parent
5d3d246165
commit
dd9c401a1e
@ -53,12 +53,6 @@ namespace OpenAuth.Mvc.Controllers
|
|||||||
return JsonHelper.Instance.Serialize(_app.Load(orgId, pageCurrent, pageSize));
|
return JsonHelper.Instance.Serialize(_app.Load(orgId, pageCurrent, pageSize));
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取组织下面用户个数
|
|
||||||
public int GetCount(int orgId)
|
|
||||||
{
|
|
||||||
return _app.GetRoleCntInOrg(orgId);
|
|
||||||
}
|
|
||||||
|
|
||||||
public string Delete(string Id)
|
public string Delete(string Id)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -52,12 +52,6 @@ namespace OpenAuth.Mvc.Controllers
|
|||||||
return JsonHelper.Instance.Serialize(_app.Load(orgId, pageCurrent, pageSize));
|
return JsonHelper.Instance.Serialize(_app.Load(orgId, pageCurrent, pageSize));
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取组织下面用户个数
|
|
||||||
public int GetCount(int orgId)
|
|
||||||
{
|
|
||||||
return _app.GetUserCntInOrg(orgId);
|
|
||||||
}
|
|
||||||
|
|
||||||
public string Delete(string Id)
|
public string Delete(string Id)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
dataUrl: 'RoleManager/Load?orgId=' + selectedId,
|
dataUrl: 'RoleManager/Load?orgId=' + selectedId,
|
||||||
delUrl: 'Role/Delete',
|
delUrl: 'RoleManager/Delete',
|
||||||
delPK: "Id",
|
delPK: "Id",
|
||||||
fullGrid: true,
|
fullGrid: true,
|
||||||
showLinenumber: true,
|
showLinenumber: true,
|
||||||
|
@ -37,7 +37,8 @@
|
|||||||
toolbarItem: 'refresh, |, del',
|
toolbarItem: 'refresh, |, del',
|
||||||
toolbarCustom: '<a href="/UserManager/Add" class="btn btn-green" data-icon ="plus" ' +
|
toolbarCustom: '<a href="/UserManager/Add" class="btn btn-green" data-icon ="plus" ' +
|
||||||
'data-toggle="dialog" data-id="dialog-mask" data-mask="true" data-on-close="refreshGrid">添加</a>' +
|
'data-toggle="dialog" data-id="dialog-mask" data-mask="true" data-on-close="refreshGrid">添加</a>' +
|
||||||
'<button class=" btn-green" onclick="editOrg()" data-icon="pencil" type="button">编辑</button>',
|
'<button class=" btn-green" onclick="editOrg()" data-icon="pencil" type="button">编辑</button>'+
|
||||||
|
'<button class=" btn-green" onclick="accessMenu()" data-icon="pencil" type="button">用户菜单授权</button>',
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
name: 'Id',
|
name: 'Id',
|
||||||
@ -173,6 +174,22 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//自定义的编辑按钮
|
||||||
|
function accessMenu() {
|
||||||
|
var selected = getSelected(2);
|
||||||
|
if (selected == null) return;
|
||||||
|
|
||||||
|
$(this).dialog({
|
||||||
|
id: 'editDialog',
|
||||||
|
url: '/UserManager/Add?id=' + selected,
|
||||||
|
title: '编辑',
|
||||||
|
onClose: function () {
|
||||||
|
refreshGrid();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function refreshGrid() {
|
function refreshGrid() {
|
||||||
$('#@_gridId').datagrid('refresh');
|
$('#@_gridId').datagrid('refresh');
|
||||||
// loadDataGrid();
|
// loadDataGrid();
|
||||||
|
Loading…
Reference in New Issue
Block a user