@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
||||
import com.eactive.eai.rms.common.acl.menu.ui.LeftMenuUI;
|
||||
import com.eactive.eai.rms.common.acl.role.RoleManService;
|
||||
import com.eactive.eai.rms.common.base.BaseAnnotationController;
|
||||
import com.eactive.eai.rms.common.context.MonitoringContext;
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceContextHolder;
|
||||
import com.eactive.eai.rms.common.login.SessionManager;
|
||||
import com.eactive.eai.rms.data.entity.man.menu.MenuService;
|
||||
@@ -31,6 +32,9 @@ public class MenuRenderController extends BaseAnnotationController {
|
||||
@Autowired
|
||||
private MenuRenderService menuRenderService;
|
||||
|
||||
@Autowired
|
||||
private MonitoringContext monitoringContext;
|
||||
|
||||
@GetMapping("/left_top.do")
|
||||
public String left_top(HttpServletRequest request, ModelMap modelMap) {
|
||||
return "/common/screen/left_top";
|
||||
@@ -87,6 +91,9 @@ public class MenuRenderController extends BaseAnnotationController {
|
||||
List<DataSourceType> roleServiceTypeList = roleManService.selectRoleServiceTypeList(roleIds);
|
||||
modelMap.addAttribute("roleServiceTypeList", roleServiceTypeList);
|
||||
|
||||
modelMap.addAttribute("autoLogoutTimeout",
|
||||
monitoringContext.getIntProperty(MonitoringContext.RMS_AUTO_LOGOUT_TIMEOUT, 30));
|
||||
|
||||
if (StringUtils.isNotBlank(mainPage)) {
|
||||
for (Map<String, Object> map : dataList) {
|
||||
String url = (String) map.get("LEV4_URL");
|
||||
|
||||
@@ -694,7 +694,7 @@ public class MainController implements InterceptorSkipController {
|
||||
model.addAttribute("mainPage", mainPage);
|
||||
model.addAttribute("menuId", menuId);
|
||||
model.addAttribute("autoLogoutTimeout",
|
||||
monitoringContext.getIntProperty(MonitoringContext.RMS_AUTO_LOGOUT_TIMEOUT, 60));
|
||||
monitoringContext.getIntProperty(MonitoringContext.RMS_AUTO_LOGOUT_TIMEOUT, 30));
|
||||
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("CURRENT SERVICE TYPE : " + service);
|
||||
|
||||
Reference in New Issue
Block a user