/// <summary> /// 分页获取设备列表 /// </summary> /// <param name="param"></param> /// <returns></returns> public JsonResult AjaxGetDeviceList(LayUIPageParam param) { LayuiPageResult <DeviceAndUser> res = new LayuiPageResult <DeviceAndUser>(); res.data = DeviceLogic.GetDeviceList(AuthUser.UserTypeId.Value, AuthUser.Id, param.page, param.limit); res.count = DeviceLogic.GetDeviceCount(AuthUser.UserTypeId.Value, AuthUser.Id); return(Json(res)); }
/// <summary> /// 登陆首页默认加载的页面 /// </summary> /// <returns></returns> public ActionResult Default() { List <WebLog> logs = WebLogLogic.GetWebLog(AuthUser.Id, AuthUser.UserTypeId.Value, 0, 10); ViewBag.Logs = logs; ViewBag.User = AuthUser; ViewBag.DeviceCount = DeviceLogic.GetDeviceCount(AuthUser.UserTypeId.Value, AuthUser.Id); return(View()); }