修改齿轮首页界面面初始化是获取时间范围

This commit is contained in:
dongxiaoyan
2018-12-22 21:46:58 +08:00
parent c3d74eebd3
commit 278ebbdeb7
2 changed files with 5 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ public class DynamicIndexController extends BaseController {
List<Map> results = new ArrayList<>();
if (hour == null || hour <= 0) {
hour = 1;
hour = 2;
}
Date now = new Date();
@@ -175,7 +175,8 @@ public class DynamicIndexController extends BaseController {
List<Map> results = new ArrayList<>();
if (hour == null || hour <= 0) {
hour = 24;
//hour = 24;
hour = 2;
}
Date now = new Date();
@@ -244,7 +245,7 @@ public class DynamicIndexController extends BaseController {
List results = new ArrayList<>();
if (hour == null || hour <= 0) {
hour = 24;
hour = 2;
}
Date now = new Date();

View File

@@ -28,7 +28,7 @@
sessionStorage.setItem("log_total","${log_total}");
sessionStorage.setItem("log_time_start","${log_time_start}");
sessionStorage.setItem("log_time_range","${log_time_range}");
window.frames['mainFrame'].location="${ctx}/dynamicpage/dynamicIndex?sid=" + indexLogServiceId + "&baseNum=" + baseNum;
window.frames['mainFrame'].location="${ctx}/dynamicpage/dynamicIndex?sid=" + indexLogServiceId + "&hour=2&baseNum=" + baseNum;
//window.frames['mainFrame'].location="${ctx}/dashboard/logChart";
//国际化切换
var lang = "${cookie.Language.value }".toLowerCase();