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
9878037a7ef7133cf027c8660a660b257a0c0cf3
1 parent
92db79e3
去掉不用代码
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
559 deletions
monitor-ui-common/src/main/java/com/ui/contants/HttpUriContants.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/MaliciousIpCtrl.java
monitor-ui-web/src/main/webapp/js/malicious/maliciousIpListBL.js
monitor-ui-web/src/main/webapp/js/malicious/maliciousIpListCS.js
monitor-ui-web/src/main/webapp/jsp/malicious/maliciousIpListBL.jsp
monitor-ui-web/src/main/webapp/jsp/malicious/maliciousIpListCS.jsp
monitor-ui-web/src/main/webapp/script/common/genarate_left_panel.js
monitor-ui-common/src/main/java/com/ui/contants/HttpUriContants.java
View file @
9878037
...
...
@@ -312,8 +312,6 @@ public class HttpUriContants {
public
static
final
String
GET_MALICIOUS_UPLOADIP
=
"/maliciousIp/uploadIp"
;
public
static
final
String
GET_MALICIOUS_LOOKIP
=
"/maliciousIp/lookIps"
;
public
static
final
String
GET_MALICIOUS_REMOVEIP
=
"/maliciousIp/removeIp"
;
public
static
final
String
GET_MALICIOUS_IP_BL
=
"/maliciousIp/getIpsBL"
;
public
static
final
String
GET_MALICIOUS_IP_CS
=
"/maliciousIp/getIpsCS"
;
public
static
final
String
GET_MALICIOUS_IP_RULES
=
"/maliciousIp/getIpRules"
;
public
static
final
String
SAVE_MALICIOUS_IP_RULES
=
"/maliciousIp/saveIpRules"
;
public
static
final
String
DEL_MALICIOUS_IP_RULE
=
"/maliciousIp/deleteIpRule"
;
...
...
monitor-ui-ctrl/src/main/java/com/ui/ctrl/MaliciousIpCtrl.java
View file @
9878037
...
...
@@ -137,16 +137,6 @@ public class MaliciousIpCtrl {
return
response
;
}
@RequestMapping
(
"/toMaliciousIpsBL"
)
public
ModelAndView
toMaliciousIpsBL
(
Model
model
)
{
return
new
ModelAndView
(
"malicious/maliciousIpListBL"
);
}
@RequestMapping
(
"/toMaliciousIpsCS"
)
public
ModelAndView
toMaliciousIpsCS
(
Model
model
)
{
return
new
ModelAndView
(
"malicious/maliciousIpListCS"
);
}
@RequestMapping
(
"/showDetail"
)
public
ModelAndView
showDetail
(
Model
model
,
String
ip
,
String
count
,
String
type
,
String
timeType
,
String
timestamp
)
{
ModelAndView
mdv
=
new
ModelAndView
(
"malicious/maliciousIpDetail"
);
...
...
@@ -212,34 +202,6 @@ public class MaliciousIpCtrl {
BaseResponse
.
class
);
return
response
;
}
/**
* 比例
* @param model
* @return
*/
@SuppressWarnings
(
"unchecked"
)
@RequestMapping
(
"/getIpsBL"
)
@ResponseBody
public
BaseResponse
<
List
<
Object
>>
getIpsBL
(
Model
model
,
String
timeType
)
{
BaseResponse
<
List
<
Object
>>
response
=
httpClient
.
defaultPost
(
HttpUriContants
.
GET_MALICIOUS_IP_BL
+
"?timeType="
+
timeType
,
null
,
BaseResponse
.
class
);
return
response
;
}
/**
* 次数
* @param model
* @return
*/
@SuppressWarnings
(
"unchecked"
)
@RequestMapping
(
"/getIpsCS"
)
@ResponseBody
public
BaseResponse
<
List
<
Object
>>
getIpsCS
(
Model
model
,
String
timeType
)
{
BaseResponse
<
List
<
Object
>>
response
=
httpClient
.
defaultPost
(
HttpUriContants
.
GET_MALICIOUS_IP_CS
+
"?timeType="
+
timeType
,
null
,
BaseResponse
.
class
);
return
response
;
}
/**
...
...
monitor-ui-web/src/main/webapp/js/malicious/maliciousIpListBL.js
deleted
100644 → 0
View file @
92db79e
$
(
function
()
{
refreshTable
();
});
function
refreshTable
()
{
$
(
"#ipTable"
).
table
({
url
:
contextPath
+
"maliciousIp/getIpsBL?timeType="
+
$
(
"#timeType"
).
val
(),
dataType
:
'json'
,
striped
:
true
,
sortName
:
'count'
,
// 设置默认排序为 name
sortOrder
:
'desc'
,
// 设置排序为反序 desc
panelClass
:
"panel-success"
,
loadFilter
:
function
(
data
)
{
return
defaultLoadFilter
(
data
);
},
columns
:
[
{
title
:
""
,
width
:
"50px"
,
field
:
"ip"
,
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
var
div
=
$
(
"<div>"
);
//复选框
var
checkBox
=
$
(
"<input name='checkType' type='checkbox' value='"
+
value
+
"'>"
).
addClass
(
"ckbox-default"
).
appendTo
(
div
);
return
div
;
}
},
{
title
:
"ip"
,
width
:
"150px"
,
field
:
"ip"
},
{
title
:
"百分比"
,
width
:
"80"
,
field
:
"impApiPrecent"
,
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
return
value
+
"%"
;
}
},
{
title
:
"敏感接口QPS/全部QPS"
,
width
:
"200"
,
field
:
"allCount"
,
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
return
rowData
.
impCount
+
" / "
+
rowData
.
allCount
;
}
},
{
title
:
"udid个数"
,
width
:
"70"
,
field
:
"udidCount"
,
},
{
title
:
"时间"
,
width
:
"200"
,
field
:
"time"
},
{
title
:
"详情"
,
width
:
"50px"
,
field
:
"ip"
,
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
var
div
=
$
(
"<div>"
);
//详情
var
editBtn
=
$
(
"<button data-target='#updateModal' data-toggle='modal'>"
).
addClass
(
"btn btn-xs btn-success"
).
html
(
"详情"
).
appendTo
(
div
);
editBtn
.
click
(
function
()
{
getDetail
(
rowData
.
ip
,
rowData
.
allCount
,
rowData
.
timestamp
);
});
return
div
;
}
}]
});
}
//显示ip的详情
function
getDetail
(
ip
,
count
,
timestamp
){
var
dialog
=
$
(
"<div>"
).
appendTo
(
$
(
"body"
));
dialog
.
dialog
({
size
:
"modal-lg"
,
title
:
"详情"
,
backdrop
:
"static"
,
href
:
"showDetail?type=li_malicious_ips_bl&ip="
+
ip
+
"&count="
+
count
+
"&timeType="
+
$
(
"#timeType"
).
val
()
+
"×tamp="
+
timestamp
});
}
//根据5s和30s取数据
function
queryDataByTime
(){
refreshTable
();
}
//全选
function
checkAll
(){
$
(
"#ipTable input[type='checkbox']"
).
each
(
function
(){
if
(
$
(
"#checkAll"
).
is
(
':checked'
))
$
(
this
).
prop
(
"checked"
,
true
);
else
$
(
this
).
prop
(
"checked"
,
false
);
});
}
function
uploadIps
(){
var
listip
=
""
;
$
(
"#ipTable input[type='checkbox']:checked"
).
each
(
function
(){
listip
+=
$
(
this
).
val
()
+
"|"
;
});
if
(
listip
.
length
==
0
){
return
;
}
if
(
confirm
(
"是否确定要上传如下ip:\r\n"
+
listip
)){
var
params
=
{};
params
.
ips
=
listip
;
$
.
ajax
({
url
:
'/maliciousIp/uploadIp'
,
type
:
'POST'
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
!
data
||
data
.
code
!=
200
)
{
alert
(
'系统异常:'
+
data
.
message
);
}
else
{
if
(
data
.
data
.
status
==
'0'
){
alert
(
'上传成功!'
);
}
else
{
alert
(
'上传失败:'
+
data
.
data
.
message
);
}
}
},
error
:
function
(
data
)
{
alert
(
'系统异常'
);
}
});
}
}
function
lookIps
(){
var
dialog
=
$
(
"<div>"
).
appendTo
(
$
(
"body"
));
dialog
.
dialog
({
size
:
"modal-lg"
,
title
:
"已经上传过的恶意ip"
,
backdrop
:
"static"
,
href
:
"showIps"
});
}
\ No newline at end of file
monitor-ui-web/src/main/webapp/js/malicious/maliciousIpListCS.js
deleted
100644 → 0
View file @
92db79e
$
(
function
()
{
refreshTable
();
});
function
refreshTable
()
{
$
(
"#ipTable"
).
table
({
url
:
contextPath
+
"maliciousIp/getIpsCS?timeType="
+
$
(
"#timeType"
).
val
(),
dataType
:
'json'
,
striped
:
true
,
sortName
:
'count'
,
// 设置默认排序为 name
sortOrder
:
'desc'
,
// 设置排序为反序 desc
panelClass
:
"panel-success"
,
loadFilter
:
function
(
data
)
{
return
defaultLoadFilter
(
data
);
},
columns
:
[
{
title
:
""
,
width
:
"50px"
,
field
:
"ip"
,
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
var
div
=
$
(
"<div>"
);
//复选框
var
checkBox
=
$
(
"<input name='checkType' type='checkbox' value='"
+
value
+
"'>"
).
addClass
(
"ckbox-default"
).
appendTo
(
div
);
return
div
;
}
},
{
title
:
"ip"
,
width
:
"150px"
,
field
:
"ip"
},
{
title
:
"敏感接口QPS"
,
width
:
"100"
,
field
:
"impCount"
,
},
{
title
:
"百分比"
,
width
:
"80"
,
field
:
"impApiPrecent"
,
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
return
value
+
"%"
;
}
},
{
title
:
"全部QPS"
,
width
:
"100"
,
field
:
"allCount"
},
{
title
:
"udid个数"
,
width
:
"70"
,
field
:
"udidCount"
,
},
{
title
:
"时间"
,
width
:
"200"
,
field
:
"time"
},
{
title
:
"详情"
,
width
:
"50px"
,
field
:
"ip"
,
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
var
div
=
$
(
"<div>"
);
//详情
var
editBtn
=
$
(
"<button data-target='#updateModal' data-toggle='modal'>"
).
addClass
(
"btn btn-xs btn-success"
).
html
(
"详情"
).
appendTo
(
div
);
editBtn
.
click
(
function
()
{
getDetail
(
rowData
.
ip
,
rowData
.
allCount
,
rowData
.
timestamp
);
});
return
div
;
}
}]
});
}
//显示ip的详情
function
getDetail
(
ip
,
count
,
timestamp
){
var
dialog
=
$
(
"<div>"
).
appendTo
(
$
(
"body"
));
dialog
.
dialog
({
size
:
"modal-lg"
,
title
:
"详情"
,
backdrop
:
"static"
,
href
:
"showDetail?type=li_malicious_ips_cs&ip="
+
ip
+
"&count="
+
count
+
"&timeType="
+
$
(
"#timeType"
).
val
()
+
"×tamp="
+
timestamp
});
}
//根据5s和30s取数据
function
queryDataByTime
(){
refreshTable
();
}
//全选
function
checkAll
(){
$
(
"#ipTable input[type='checkbox']"
).
each
(
function
(){
if
(
$
(
"#checkAll"
).
is
(
':checked'
))
$
(
this
).
prop
(
"checked"
,
true
);
else
$
(
this
).
prop
(
"checked"
,
false
);
});
}
function
uploadIps
(){
var
listip
=
""
;
$
(
"#ipTable input[type='checkbox']:checked"
).
each
(
function
(){
listip
+=
$
(
this
).
val
()
+
"|"
;
});
if
(
listip
.
length
==
0
){
return
;
}
if
(
confirm
(
"是否确定要上传如下ip:\r\n"
+
listip
)){
var
params
=
{};
params
.
ips
=
listip
;
$
.
ajax
({
url
:
'/maliciousIp/uploadIp'
,
type
:
'POST'
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
!
data
||
data
.
code
!=
200
)
{
alert
(
'系统异常:'
+
data
.
message
);
}
else
{
if
(
data
.
data
.
status
==
'0'
){
alert
(
'上传成功!'
);
}
else
{
alert
(
'上传失败:'
+
data
.
data
.
message
);
}
}
},
error
:
function
(
data
)
{
alert
(
'系统异常'
);
}
});
}
}
function
lookIps
(){
var
dialog
=
$
(
"<div>"
).
appendTo
(
$
(
"body"
));
dialog
.
dialog
({
size
:
"modal-lg"
,
title
:
"已经上传过的恶意ip"
,
backdrop
:
"static"
,
href
:
"showIps"
});
}
\ No newline at end of file
monitor-ui-web/src/main/webapp/jsp/malicious/maliciousIpListBL.jsp
deleted
100644 → 0
View file @
92db79e
<
%--
CreateUser: xuhui
CreateDate: 2017/3/20
--%>
<
%@ page import="org.aspectj.weaver.ast.Var" %>
<
%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<
%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/unicorn.main.css"
/>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/unicorn.grey.css"
/>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/jquery-ui.css"
/>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/bootstrap-responsive.min.css"
/>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/uniform.css"
/>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/select2.css"
/>
<script
src=
"<%=basePath %>js/excanvas.min.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/jquery-1.12.0.min.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/jquery-ui.custom.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>/js/bootstrap.min.js"
></script>
<script
src=
"<%=basePath %>/js/unicorn.js"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/datetimepicker/moment-with-locales.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/datetimepicker/bootstrap-datetimepicker.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/global.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.pagination.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.table.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.dialog.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.form.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.panel.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.alerts.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.accordion.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.breadcrumb.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.validate.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.form.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/layer/layer.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.select.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/jstree/jstree.min.js"
></script>
<script
src=
"<%=basePath %>js/jquery.toaster.js"
></script>
<script>
var
contextPath
=
'<%=basePath %>'
;
</script>
<title>
YOHO!运维
</title>
</head>
<body>
<!-- 头部 -->
<div
id=
"head"
>
</div>
<!-- 右侧具体内容 -->
<div
id=
"content"
>
<div
id=
"breadcrumb"
>
<a
href=
"#"
title=
"Go to Home"
class=
"tip-bottom"
><i
class=
"icon-home"
></i>
Home
</a>
<a
href=
"#"
class=
"current"
>
恶意ip管理 | 敏感接口比例
</a>
</div>
<div
class=
"container-fluid"
>
<div
class=
"widget-box"
>
<div
class=
"widget-title"
>
<h5>
恶意ip top
</h5>
</div>
<div
class=
"widget-title"
style=
"height: 56px;"
>
<div>
<div
class=
"form-inline"
role=
"form"
id=
"inBoxQueryDiv"
style=
" margin-top: 12px;margin-left: 25px;float: left;"
>
<div
class=
"input-group"
style=
"float: left"
>
<span
class=
"input-group-addon"
>
按时间查看:
</span>
<select
id=
"timeType"
name=
"timeType"
class=
"form-control"
onchange=
"queryDataByTime()"
>
<option
value=
"2"
selected =
"selected"
>
2s
</option>
<option
value=
"30"
>
30s
</option>
</select>
</div>
<div
class=
"input-group"
style=
"float: left"
>
<span
class=
"input-group-addon"
style=
"height:34px;"
>
全选:
</span>
<span
class=
"input-group-addon"
style=
"height:34px;width:40px;"
></span>
<input
type=
"checkbox"
id=
"checkAll"
class=
"form-control"
style=
"margin-top:7px;margin-left:-30px;width:20px;height:20px;"
onclick=
"checkAll()"
/>
</div>
<button
id=
"uploadIps"
class=
"btn-primary"
style=
"margin-left: 80px;"
onclick=
"uploadIps()"
>
上 传
</button>
<button
id=
"lookIps"
class=
"btn-primary"
style=
"margin-left: 10px;"
onclick=
"lookIps()"
>
查 看
</button>
</div>
</div>
</div>
<div
id=
"ipTable"
style=
"overflow-y: auto; overflow-x:hidden;max-height: 700px"
/>
</div>
</div>
</div>
</body>
<script
src=
"<%=basePath %>js/pagination.js"
></script>
<script
src=
"<%=basePath %>script/common/genarate_left_panel.js"
></script>
<script
src=
"<%=basePath %>js/malicious/maliciousIpListBL.js"
></script>
<script>
$
(
"#li_config"
).
addClass
(
"active open"
);
$
(
"#li_malicious_ips_bl"
).
addClass
(
"active"
);
</script>
</html>
\ No newline at end of file
monitor-ui-web/src/main/webapp/jsp/malicious/maliciousIpListCS.jsp
deleted
100644 → 0
View file @
92db79e
<
%--
CreateUser: xuhui
CreateDate: 2017/3/20
--%>
<
%@ page import="org.aspectj.weaver.ast.Var" %>
<
%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<
%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/unicorn.main.css"
/>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/unicorn.grey.css"
/>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/jquery-ui.css"
/>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/bootstrap-responsive.min.css"
/>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/uniform.css"
/>
<link
rel=
"stylesheet"
href=
"<%=basePath %>css/select2.css"
/>
<script
src=
"<%=basePath %>js/excanvas.min.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/jquery-1.12.0.min.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/jquery-ui.custom.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>/js/bootstrap.min.js"
></script>
<script
src=
"<%=basePath %>/js/unicorn.js"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/datetimepicker/moment-with-locales.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/datetimepicker/bootstrap-datetimepicker.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/global.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.pagination.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.table.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.dialog.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.form.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.panel.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.alerts.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.accordion.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.breadcrumb.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.validate.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.form.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/layer/layer.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/bootstrap-plugin/bootstrap.select.js"
charset=
"UTF-8"
type=
"text/javascript"
></script>
<script
src=
"<%=basePath %>js/jstree/jstree.min.js"
></script>
<script
src=
"<%=basePath %>js/jquery.toaster.js"
></script>
<script>
var
contextPath
=
'<%=basePath %>'
;
</script>
<title>
YOHO!运维
</title>
</head>
<body>
<!-- 头部 -->
<div
id=
"head"
>
</div>
<!-- 右侧具体内容 -->
<div
id=
"content"
>
<div
id=
"breadcrumb"
>
<a
href=
"#"
title=
"Go to Home"
class=
"tip-bottom"
><i
class=
"icon-home"
></i>
Home
</a>
<a
href=
"#"
class=
"current"
>
恶意ip管理 | 敏感接口次数
</a>
</div>
<div
class=
"container-fluid"
>
<div
class=
"widget-box"
>
<div
class=
"widget-title"
>
<h5>
恶意ip top
</h5>
</div>
<div
class=
"widget-title"
style=
"height: 56px;"
>
<div>
<div
class=
"form-inline"
role=
"form"
id=
"inBoxQueryDiv"
style=
" margin-top: 12px;margin-left: 25px;float: left;"
>
<div
class=
"input-group"
style=
"float: left"
>
<span
class=
"input-group-addon"
>
按时间查看:
</span>
<select
id=
"timeType"
name=
"timeType"
class=
"form-control"
onchange=
"queryDataByTime()"
>
<option
value=
"2"
selected =
"selected"
>
2s
</option>
<option
value=
"30"
>
30s
</option>
</select>
</div>
<div
class=
"input-group"
style=
"float: left"
>
<span
class=
"input-group-addon"
style=
"height:34px;"
>
全选:
</span>
<span
class=
"input-group-addon"
style=
"height:34px;width:40px;"
></span>
<input
type=
"checkbox"
id=
"checkAll"
class=
"form-control"
style=
"margin-top:7px;margin-left:-30px;width:20px;height:20px;"
onclick=
"checkAll()"
/>
</div>
<button
id=
"uploadIps"
class=
"btn-primary"
style=
"margin-left: 80px;"
onclick=
"uploadIps()"
>
上 传
</button>
<button
id=
"lookIps"
class=
"btn-primary"
style=
"margin-left: 10px;"
onclick=
"lookIps()"
>
查 看
</button>
</div>
</div>
</div>
<div
id=
"ipTable"
style=
"overflow-y: auto; overflow-x:hidden;max-height: 700px"
/>
</div>
</div>
</div>
</body>
<script
src=
"<%=basePath %>js/pagination.js"
></script>
<script
src=
"<%=basePath %>script/common/genarate_left_panel.js"
></script>
<script
src=
"<%=basePath %>js/malicious/maliciousIpListCS.js"
></script>
<script>
$
(
"#li_config"
).
addClass
(
"active open"
);
$
(
"#li_malicious_ips_cs"
).
addClass
(
"active"
);
</script>
</html>
\ No newline at end of file
monitor-ui-web/src/main/webapp/script/common/genarate_left_panel.js
View file @
9878037
...
...
@@ -134,9 +134,6 @@ innerHTML += "<li id='li_malicious_ips_new'><a id='li_malicious_ips_a_new' href=
/*innerHTML += "<li id='li_malicious_ips_filter'><a id='li_malicious_ips_filter_a' href=''><i class='icon icon-th'></i> <span>恶意ip过滤集</span></a></li>";*/
innerHTML
+=
"<li id='li_malicious_record'><a id='li_malicious_ips_record_a' href=''><i class='icon icon-th'></i> <span>恶意ip_实时算法数据</span></a></li>"
;
innerHTML
+=
"<li id='li_malicious_record_forbid'><a id='li_malicious_ips_record_forbid_a' href=''><i class='icon icon-th'></i> <span>恶意ip_告警数据</span></a></li>"
;
/*innerHTML += "<li id='li_malicious_ips'><a id='li_malicious_ips_a' href=''><i class='icon icon-th'></i> <span>恶意ip管理</span></a></li>";
innerHTML += "<li id='li_malicious_ips_bl'><a id='li_malicious_ips_bl_a' href=''><i class='icon icon-th'></i> <span>恶意ip管理 | 敏感接口比例</span></a></li>";
innerHTML += "<li id='li_malicious_ips_cs'><a id='li_malicious_ips_cs_a' href=''><i class='icon icon-th'></i> <span>恶意ip管理 | 敏感接口次数</span></a></li>";*/
innerHTML
+=
"</ul></li>"
;
/*其他*/
innerHTML
+=
"<li class='submenu' id='li_other'><a id='li_other_a' href='#'><i class='icon icon-th-list'></i> <span>其他</span><span class='label'>5</span></a>"
;
...
...
@@ -214,8 +211,6 @@ document.getElementById("li_malicious_ips_a_new").setAttribute("href", path + "/
//document.getElementById("li_malicious_ips_filter_a").setAttribute("href", path + "/maliciousIp/toMaliciousIpFilterList");
document
.
getElementById
(
"li_malicious_ips_record_a"
).
setAttribute
(
"href"
,
path
+
"/maliciousIp/toMaliciousIpRecordList"
);
document
.
getElementById
(
"li_malicious_ips_record_forbid_a"
).
setAttribute
(
"href"
,
path
+
"/maliciousIp/toMaliciousIpRecordForbidList"
);
//document.getElementById("li_malicious_ips_bl_a").setAttribute("href", path + "/maliciousIp/toMaliciousIpsBL");
//document.getElementById("li_malicious_ips_cs_a").setAttribute("href", path + "/maliciousIp/toMaliciousIpsCS");
document
.
getElementById
(
"li_docker_project_info_a"
).
setAttribute
(
"href"
,
path
+
"/dockerBuild/toDockerInfoList"
);
...
...
Please
register
or
login
to post a comment