...
|
...
|
@@ -74,9 +74,9 @@ |
|
|
<div class="widget-box">
|
|
|
<div class="widget-title">
|
|
|
<h5>Redis状态 (<span id="updateTime"></span> 更新)</h5>
|
|
|
<button class="btn-success" id="refresh" style="float: right; margin-top: 5px; margin-right: 5px"
|
|
|
<%-- <button class="btn-success" id="refresh" style="float: right; margin-top: 5px; margin-right: 5px"
|
|
|
onclick="refresh()">刷新
|
|
|
</button>
|
|
|
</button>--%>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
...
|
...
|
@@ -123,24 +123,24 @@ |
|
|
<script type="text/javascript">
|
|
|
$(function () {
|
|
|
refreshTable();
|
|
|
//自动刷新 60s
|
|
|
setTimeout('refreshTable()', 60000);
|
|
|
//自动刷新 10s
|
|
|
setTimeout('refreshTable()', 10000);
|
|
|
});
|
|
|
|
|
|
function refresh() {
|
|
|
/* function refresh() {
|
|
|
$.ajax(
|
|
|
{
|
|
|
url: contextPath + "redisMonitor/refresh",
|
|
|
type: 'GET',
|
|
|
//请求成功后触发
|
|
|
success: function (resp) {
|
|
|
/* $("#updateTime").text(resp.data);*/
|
|
|
/!* $("#updateTime").text(resp.data);*!/
|
|
|
}
|
|
|
}
|
|
|
);
|
|
|
|
|
|
refreshTable();
|
|
|
}
|
|
|
}*/
|
|
|
function refreshTable() {
|
|
|
$.ajax({
|
|
|
url: contextPath + "redisMonitor/updateTime",
|
...
|
...
|
|