Index: ssts-web/src/main/webapp/homepage/portalPage.jsp =================================================================== diff -u -r35083 -r35127 --- ssts-web/src/main/webapp/homepage/portalPage.jsp (.../portalPage.jsp) (revision 35083) +++ ssts-web/src/main/webapp/homepage/portalPage.jsp (.../portalPage.jsp) (revision 35127) @@ -46,6 +46,7 @@ if(currentOrgUnitName!=null){ request.setAttribute("depart",currentOrgUnitName); } + request.setAttribute("noOperationTime", supplyRoomConfig.getNoOperationTime()); request.setAttribute("fontSize",userData.getFontSize() == null?"12":userData.getFontSize()); request.setAttribute("departCoding",orgCoding); String loginUserDataJsonStr = JSONObject.fromObject(userData).toString(); @@ -79,7 +80,6 @@ } String v_ENABLE_SPEECH_RECOGNITION = (String)session.getAttribute(WebConstants.KEY_ENABLE_SPEECH_RECOGNITION); boolean ENABLE_SPEECH_RECOGNITION = WebConstants.VALUE_ENABLE.equals(v_ENABLE_SPEECH_RECOGNITION); - request.setAttribute("ENABLE_SPEECH_RECOGNITION",ENABLE_SPEECH_RECOGNITION); HttpOptionManager httpOptionManager = (HttpOptionManager)SpringBeanManger.getBean("httpOptionManager"); @@ -148,6 +148,7 @@ top.Ext = Ext; top.Ext4 = Ext4; } + var noOperationTime = '${noOperationTime}'; @@ -372,14 +373,13 @@ timer = setTimeout(hideDiv,1); } } - /** * 30秒钟检测一下当前用户是否切换,如果切换了,必须强制刷新首页 */ function initOnLoad(){ setInterval("detectCurrentUserPeriodically()", 30 * 1000); if(!SSTS_RealTimeDashboards){ - setInterval("dashboardsScreenSaver()", 30 * 1000); + setInterval("dashboardsScreenSaver()", noOperationTime * 60 * 1000); } if(hideLogo == 'true' || hideLogo == true){ document.getElementById('top_div').style.display = 'none';