完成菜单分配JS模块化

This commit is contained in:
yubaolee
2016-04-18 23:36:40 +08:00
parent 2c521e3244
commit 0738c84535
11 changed files with 141 additions and 340 deletions

View File

@@ -54,6 +54,18 @@ namespace OpenAuth.App
return _repository.Find(null).ToList();
}
public List<Module> LoadTree(int firstId, string key)
{
if (key == "UserElement") //todo:因为在分配菜单页面出现的树,只能收到这个值,蛋疼
{
return LoadForUser(firstId);
}
else
{
return LoadForRole(firstId);
}
}
/// <summary>
/// 以组合的方式显示所有的模块信息
/// </summary>