//返回登录后的首页 public IActionResult RedirectDefaultIndexPage() { TempData["IsMenuLoad"] = base.getQuery("IsMenuLoad"); var docCanTreat = UserMgr.IsMenuAllowed("PationtVisitV20");//允许访问接诊页面 var station = UserMgr.GetMyStation(); //医生 if (UserSelf.IsCanTreat && docCanTreat) { if (UserSelf.MyRoleNames.Contains("ds_assistant_doctor") || UserSelf.MyRoleNames.Contains("ds_doctor")) { return(RedirectToAction("DrugStoreIndex_Nurse")); //药店医生或者药店助理医生 } if (station.IsNetPlat) { return(RedirectToAction("DoctorIndex_NetPlat")); } else { return(RedirectToAction("DoctorIndex")); //避免浏览器缓存买有刷新菜单 } } return(RedirectToAction("DoctorIndex_Normal")); }