mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 18:47:55 +08:00
全面修正分级授权,去掉Anonymous,采用Authenticate进行授权
This commit is contained in:
@@ -70,7 +70,7 @@ function UserRolesList() {
|
||||
width: 100
|
||||
}
|
||||
],
|
||||
dataUrl: '/RoleManager/LoadForOrgAndUser?orgId=' + selectedId + '&userId=' + $('#userId').val(),
|
||||
data:[],
|
||||
fullGrid: true,
|
||||
showLinenumber: true,
|
||||
showCheckboxcol: true,
|
||||
@@ -105,8 +105,16 @@ var ztree = function () {
|
||||
callback: { onClick: zTreeOnClick }
|
||||
};
|
||||
$.getJSON('/OrgManager/LoadOrg', function (json) {
|
||||
var zTreeObj = $.fn.zTree.init($.CurrentDialog.find("#tree"), setting, json);
|
||||
var zTreeObj = $.fn.zTree.init($("#tree"), setting, json);
|
||||
var firstId; //tree的第一个ID
|
||||
if (json.length > 0) {
|
||||
firstId = json[0].Id;
|
||||
} else {
|
||||
firstId = -1;
|
||||
}
|
||||
userRolesList.reload(firstId);
|
||||
zTreeObj.expandAll(true);
|
||||
|
||||
});
|
||||
}();
|
||||
function zTreeOnClick(event, treeId, treeNode) {
|
||||
|
Reference in New Issue
Block a user