引入ztree

This commit is contained in:
yubaolee
2017-08-31 19:23:29 +08:00
parent 15a9697ed0
commit d88668def1
16 changed files with 668 additions and 132 deletions

View File

@@ -28,7 +28,7 @@ namespace OpenAuth.Mvc.Controllers
ViewBag.FirstId = firstId;
ViewBag.ModuleType = key;
var moduleWithChildren = AuthUtil.GetCurrentUser().ModuleWithChildren;
var moduleWithChildren = AuthUtil.GetCurrentUser().Modules.GenerateTree(u =>u.Id, u =>u.ParentId);
var modules = key == "UserModule" ? App.LoadForUser(firstId) : App.LoadForRole(firstId);
CheckModule(moduleWithChildren, modules);