mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 02:29:24 +08:00
在内部实现ztree调用
确定LOGO
This commit is contained in:
@@ -29,5 +29,16 @@ namespace OpenAuth.Mvc.Controllers
|
||||
var orgs = _orgApp.GetAll();
|
||||
return JsonHelper.Instance.Serialize(orgs);
|
||||
}
|
||||
|
||||
public JsonResult LoadTree()
|
||||
{
|
||||
return Json(_orgApp.GetAll().Select(o =>new
|
||||
{
|
||||
id = o.Id,
|
||||
pId = o.ParentId,
|
||||
name = o.Name,
|
||||
text = o.Name
|
||||
}), JsonRequestBehavior.AllowGet);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user