...
|
...
|
@@ -74,7 +74,8 @@ |
|
|
<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" onclick="refreshTable()">刷新
|
|
|
<button class="btn-success" id="refresh" style="float: right; margin-top: 5px; margin-right: 5px"
|
|
|
onclick="refresh()">刷新
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -126,6 +127,20 @@ |
|
|
setTimeout('refreshTable()', 60000);
|
|
|
});
|
|
|
|
|
|
function refresh() {
|
|
|
$.ajax(
|
|
|
{
|
|
|
url: contextPath + "redisMonitor/refresh",
|
|
|
type: 'GET',
|
|
|
//请求成功后触发
|
|
|
success: function (resp) {
|
|
|
/* $("#updateTime").text(resp.data);*/
|
|
|
}
|
|
|
}
|
|
|
);
|
|
|
|
|
|
refreshTable();
|
|
|
}
|
|
|
function refreshTable() {
|
|
|
$.ajax({
|
|
|
url: contextPath + "redisMonitor/updateTime",
|
...
|
...
|
|