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
3e807081de455733c852f80489380995b7ea6e04
1 parent
8c52509a
dns monitor 在页面中添加数据更新时间
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
monitor-ui-web/src/main/webapp/jsp/dnsmonitor/current.jsp
monitor-ui-web/src/main/webapp/script/dnsmonitor/current.js
monitor-ui-web/src/main/webapp/jsp/dnsmonitor/current.jsp
View file @
3e80708
...
...
@@ -70,7 +70,7 @@
<div
class=
"widget-box"
style=
"background: white"
>
<div
class=
"widget-title"
style=
"background: white"
>
<h5>
DNS Monitor状态 (
最近5分钟
)
</h5>
<h5>
DNS Monitor状态 (
<span
id=
"updateTime"
></span>
前更新
)
</h5>
</div>
</div>
...
...
monitor-ui-web/src/main/webapp/script/dnsmonitor/current.js
View file @
3e80708
...
...
@@ -10,6 +10,7 @@ function queryCurrentInfo() {
dataType
:
"json"
,
success
:
function
(
data
)
{
updateDNSView
(
eval
(
data
));
updateTimePanel
();
$
(
function
()
{
$
(
"[data-toggle='popover']"
).
popover
();
});
...
...
@@ -39,6 +40,7 @@ function buildIpsTablesHTML(ips) {
for
(
var
uid
in
ips
)
{
//uid为1的用户 解析到qcloud的域名, uid为1000的用户,解析到aws的域名
if
(
uid
==
1
)
{
html
+=
"<tr><td width='10%'><span style='color: darkgray'><strong>QCloud</strong></span></td>"
;
}
else
{
...
...
@@ -65,6 +67,8 @@ function buildIpsTablesHTML(ips) {
html
+=
"</div></td>"
;
}
//TODO 超链接到function
//html += "<td><a href='javasrcipt'><span style='font-size: large'>history</span></a></td></tr>";
html
+=
"</tr>"
;
}
...
...
@@ -101,4 +105,12 @@ function getClass(tagName,className)
}
return
tagArr
;
}
}
function
updateTimePanel
()
{
var
date
=
new
Date
();
var
min
=
date
.
getMinutes
();
var
hour
=
date
.
getHours
();
document
.
getElementById
(
"updateTime"
).
innerHTML
=
hour
+
":"
+
min
;
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment