/// <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()); }
public JsonResult GetWebLog(LayUIPageParam param) { List <WebLog> logs = WebLogLogic.GetWebLog(AuthUser.Id, AuthUser.UserTypeId.Value, param.page - 1, param.limit, param.date); LayuiPageResult <WebLog> ws = new LayuiPageResult <WebLog>(); ws.data = logs; ws.code = 0; ws.count = WebLogLogic.GetWebLogCount(param.date); ws.msg = "获取成功"; return(Json(ws)); }