mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 02:29:24 +08:00
可访问机构控制调整到UserSession
This commit is contained in:
@@ -46,8 +46,11 @@ layui.config({
|
||||
};
|
||||
var load = function () {
|
||||
$.getJSON(url, function (json) {
|
||||
zTreeObj = $.fn.zTree.init($("#tree"), setting, json);
|
||||
mainList({ typeId: json[0].Id });
|
||||
zTreeObj = $.fn.zTree.init($("#tree"), setting);
|
||||
var newNode = { Name: "根节点", Id: null, ParentId: "" };
|
||||
json.push(newNode);
|
||||
zTreeObj.addNodes(null, json);
|
||||
mainList({ typeId: "" });
|
||||
zTreeObj.expandAll(true);
|
||||
});
|
||||
};
|
||||
|
@@ -16,7 +16,7 @@ layui.config({
|
||||
$.extend(config, options);
|
||||
}
|
||||
table.reload('mainList', {
|
||||
url: '/OrgManager/LoadChildren',
|
||||
url: '/UserSession/GetSubOrgs',
|
||||
where: config
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user