// 我的申请 public IActionResult Index(int id = 1) { var pageIndex = id <= 0 ? 1 : id; var data = _service.DepartmentApprovals(CurrentUser.DepartmentId, id, out var total); ViewBag.PageIndex = pageIndex; ViewBag.RecordCount = total; return(View(data)); }