在内部实现ztree调用

确定LOGO
This commit is contained in:
yubaolee
2015-10-28 22:49:59 +08:00
parent 4e7f9ad0b3
commit 153f263d34
10 changed files with 114 additions and 90 deletions

View File

@@ -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);
}
}
}