/// <summary> /// 获取用户树数据 /// </summary> /// <param name="id">角色ID</param> /// <returns>json格式的JStree</returns> public ActionResult UserTreeList(int id = 0) { RoleBll bll = new RoleBll(); var roles = bll.GetRoleUser(id); var jsTree = JsTreeUserWithCheck(roles); return(Json(jsTree, JsonRequestBehavior.AllowGet)); }