全面完成前端模块化!

This commit is contained in:
yubaolee
2016-04-20 16:33:27 +08:00
parent 0738c84535
commit 9c8b6f8629
16 changed files with 469 additions and 702 deletions

View File

@@ -106,7 +106,16 @@ var ztree = function () {
},
callback: { onClick: zTreeOnClick }
};
$.getJSON('/ModuleManager/LoadTree?firstId=' + $('#firstId').val()+ '&key=' + $('#moduleType').val() , function (json) {
var url;
var type = $("#moduleType");
if (type == "UserElement") {
url = '/ModuleManager/LoadForUser';
} else {
url = '/ModuleManager/LoadForRole';
}
$.getJSON(url, { firstId: $("#firstId").val() }, function(json) {
var zTreeObj = $.fn.zTree.init($.CurrentDialog.find("#tree"), setting, json);
zTreeObj.expandAll(true);
});