Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
skinny.wu
9 years ago
Commit
d75980d1925bebb3ddc1cbb6ffa62032efc831e6
1 parent
0f8525f7
修改dns monitor 显示监控更新时间
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
monitor-ui-web/src/main/webapp/script/dnsmonitor/current.js
monitor-ui-web/src/main/webapp/script/dnsmonitor/current.js
View file @
d75980d
...
...
@@ -9,8 +9,9 @@ function queryCurrentInfo() {
type
:
"get"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
updateDNSView
(
eval
(
data
));
updateTimePanel
();
var
dataObj
=
eval
(
data
);
updateTimePanel
(
dataObj
.
updateTime
);
updateDNSView
(
eval
(
dataObj
.
dnsMonitorInfo
));
$
(
function
()
{
$
(
"[data-toggle='popover']"
).
popover
();
});
...
...
@@ -107,12 +108,12 @@ function getClass(tagName,className)
}
}
function
updateTimePanel
()
{
var
date
=
new
Date
();
function
updateTimePanel
(
updateTime
)
{
//var date = new Date();
//
////数据的更新时间 根据后台每5分钟刷新一次数据来算出更新分钟
//var min = date.getMinutes() / 6 * 5 + 1;
//var hour = date.getHours();
//数据的更新时间 根据后台每5分钟刷新一次数据来算出更新分钟
var
min
=
date
.
getMinutes
()
/
6
*
5
+
1
;
var
hour
=
date
.
getHours
();
document
.
getElementById
(
"updateTime"
).
innerHTML
=
hour
+
":"
+
min
;
document
.
getElementById
(
"updateTime"
).
innerHTML
=
updateTime
;
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment