/// <summary> /// ajax 获取部门列表(树) /// </summary> /// <returns></returns> public ActionResult DeptMenu() { List <Dept> topDept = db.GetTopList(); var str = PingDeptMenu(topDept); return(Json(str, JsonRequestBehavior.AllowGet)); }