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
qinchao
7 years ago
Commit
a0c04a1ad20177b5f510ed7440fd44b3a744819c
1 parent
caac7e3c
恶意ip
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
1 deletions
monitor-ui-web/src/main/webapp/jsp/malicious/maliciousIpListNew.jsp
monitor-ui-web/src/main/webapp/jsp/malicious/maliciousIpRecordForbidList.jsp
monitor-ui-web/src/main/webapp/jsp/malicious/maliciousIpListNew.jsp
View file @
a0c04a1
...
...
@@ -98,6 +98,25 @@
<div
id=
"ipTable"
style=
"overflow-y: auto; overflow-x:hidden;max-height: 700px"
/></div>
</div>
</div>
<div
class=
"modal fade"
id=
"myModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
style=
"width: 140%"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
id=
"myModalLabel"
></h4>
</div>
<div
class=
"modal-body"
>
<input
id=
"hbasePrefix"
type=
"text"
readonly
disabled
style=
"width:350px;"
/>
<div
id=
"hbaseTable"
style=
"overflow-y: auto; overflow-x:hidden;max-height: 700px"
/></div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-danger"
data-dismiss=
"modal"
>
关闭
</button>
</div>
</div>
</div>
</body>
<script
src=
"<%=basePath %>js/pagination.js"
></script>
<script
src=
"<%=basePath %>script/common/genarate_left_panel.js"
></script>
...
...
@@ -202,6 +221,8 @@
editBtn
.
click
(
function
()
{
removeMips
(
rowData
.
ip
);
});
div
.
append
(
" "
);
$
(
"<button onclick=\"qpsDetailMip(\'"
+
rowData
.
ip
+
"\'"
+
","
+
"\'"
+
rowData
.
hbaseTime
+
"\')\">"
).
addClass
(
"btn btn-xs btn-info"
).
html
(
"详情"
).
appendTo
(
div
);
return
div
;
},
styler
:
function
(
value
,
rowData
,
rowIndex
){
...
...
@@ -213,6 +234,39 @@
});
}
function
qpsDetailMip
(
mip
,
hbaseTime
){
if
(
!
hbaseTime
){
hbaseTime
=
0
;
}
$
(
"#hbasePrefix"
).
val
(
mip
+
":"
+
hbaseTime
+
":"
);
$
(
"#hbaseTable"
).
table
({
url
:
contextPath
+
"maliciousIp/getMaliciousDetection"
,
queryParams
:{
ip
:
mip
,
timestamp
:
hbaseTime
,
type
:
"alarm"
},
dataType
:
'json'
,
striped
:
true
,
pagination
:
false
,
//pageSize: 10,
//sortName: 'count', // 设置默认排序为 name
//sortOrder: 'desc', // 设置排序为反序 desc
panelClass
:
"panel-success"
,
loadFilter
:
function
(
data
)
{
return
defaultLoadFilter
(
data
);
},
columns
:
[
{
title
:
"内容"
,
field
:
"reason"
,
width
:
"100%"
}]
});
$
(
"#myModal"
).
modal
(
'show'
);
}
function
showResons
(
elememt
){
var
that
=
elememt
;
var
btnText
=
$
(
that
).
attr
(
"value"
);
...
...
monitor-ui-web/src/main/webapp/jsp/malicious/maliciousIpRecordForbidList.jsp
View file @
a0c04a1
...
...
@@ -119,7 +119,7 @@
</div>
</div>
</div>
</div>
</body>
<script
src=
"<%=basePath %>script/common/genarate_left_panel.js"
></script>
...
...
Please
register
or
login
to post a comment