Authored by jack

修改刷新时间

@@ -74,9 +74,9 @@ @@ -74,9 +74,9 @@
74 <div class="widget-box"> 74 <div class="widget-box">
75 <div class="widget-title"> 75 <div class="widget-title">
76 <h5>Redis状态 (<span id="updateTime"></span> 更新)</h5> 76 <h5>Redis状态 (<span id="updateTime"></span> 更新)</h5>
77 - <button class="btn-success" id="refresh" style="float: right; margin-top: 5px; margin-right: 5px" 77 +<%-- <button class="btn-success" id="refresh" style="float: right; margin-top: 5px; margin-right: 5px"
78 onclick="refresh()">刷新 78 onclick="refresh()">刷新
79 - </button> 79 + </button>--%>
80 </div> 80 </div>
81 </div> 81 </div>
82 82
@@ -123,24 +123,24 @@ @@ -123,24 +123,24 @@
123 <script type="text/javascript"> 123 <script type="text/javascript">
124 $(function () { 124 $(function () {
125 refreshTable(); 125 refreshTable();
126 - //自动刷新 60s  
127 - setTimeout('refreshTable()', 60000); 126 + //自动刷新 10s
  127 + setTimeout('refreshTable()', 10000);
128 }); 128 });
129 129
130 - function refresh() { 130 +/* function refresh() {
131 $.ajax( 131 $.ajax(
132 { 132 {
133 url: contextPath + "redisMonitor/refresh", 133 url: contextPath + "redisMonitor/refresh",
134 type: 'GET', 134 type: 'GET',
135 //请求成功后触发 135 //请求成功后触发
136 success: function (resp) { 136 success: function (resp) {
137 - /* $("#updateTime").text(resp.data);*/ 137 + /!* $("#updateTime").text(resp.data);*!/
138 } 138 }
139 } 139 }
140 ); 140 );
141 141
142 refreshTable(); 142 refreshTable();
143 - } 143 + }*/
144 function refreshTable() { 144 function refreshTable() {
145 $.ajax({ 145 $.ajax({
146 url: contextPath + "redisMonitor/updateTime", 146 url: contextPath + "redisMonitor/updateTime",