1.优化sql,提升用户登录速度
2.增加欺骗ip权限控制
This commit is contained in:
@@ -305,7 +305,9 @@ $(function(){
|
||||
<div class="col-md-6">
|
||||
<div class="row">
|
||||
<div class="col-md-offset-3 col-md-8">
|
||||
<shiro:hasPermission name="ip:cfg:edit">
|
||||
<input id="submitBtn" type="submit" class="btn btn-circle blue" value=<spring:message code="submit"></spring:message>>
|
||||
</shiro:hasPermission>
|
||||
<button id="cancel" type="button" class="btn btn-circle grey-salsa btn-outline" onclick="history.go(-1)"><spring:message code="cancel"></spring:message></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
|
||||
<div class="page-content">
|
||||
<div class="theme-panel hidden-xs hidden-sm">
|
||||
<shiro:hasPermission name="system:service:view">
|
||||
<shiro:hasPermission name="cfg:ip:edit">
|
||||
<button type="button" class="btn btn-primary" onClick="javascript:window.location='${ctx}/cfg/dnsIp/form'">
|
||||
<i class="fa fa-plus"></i>
|
||||
<spring:message code="add"></spring:message></button>
|
||||
@@ -131,9 +131,11 @@
|
||||
<%-- <button type="button" class="btn btn-default" onclick="edit()">
|
||||
<i class="fa fa-edit"></i> <spring:message code="edit"/>
|
||||
</button> --%>
|
||||
<shiro:hasPermission name="cfg:ip:edit">
|
||||
<button class="btn btn-default" onclick="delCfg()" data-toggle="tooltip" data-placement="top">
|
||||
<i class="fa fa-trash"> <spring:message code="delete"/></i>
|
||||
</button>
|
||||
</shiro:hasPermission>
|
||||
<%-- <div class="btn-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-wrench"></i> <spring:message code="examine"></spring:message>
|
||||
@@ -244,7 +246,9 @@
|
||||
<table class="table table-striped table-bordered table-condensed text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<shiro:hasPermission name="cfg:ip:edit">
|
||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||
</shiro:hasPermission>
|
||||
<th><spring:message code="config_describe"/></th>
|
||||
<th>ip<spring:message code="type"/></th>
|
||||
<th><spring:message code="client_ip"/></th>
|
||||
@@ -272,7 +276,9 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach items="${page.list }" var="dnsIpCfg" varStatus="status" step="1">
|
||||
<shiro:hasPermission name="cfg:ip:edit">
|
||||
<td><input type="checkbox" class="i-checks child-checks" id="${dnsIpCfg.fakeId}" value="${dnsIpCfg.isAudit}"></td>
|
||||
</shiro:hasPermission>
|
||||
<td>${dnsIpCfg.cfgDesc }</td>
|
||||
<td>V${dnsIpCfg.ipType }</td>
|
||||
<td>${dnsIpCfg.srcIp }</td>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
top.window.scrollTo(0, 0);
|
||||
})
|
||||
});
|
||||
|
||||
function page(n,s){
|
||||
if(n) $("#pageNo").val(n);
|
||||
@@ -41,7 +41,7 @@ function checkNum(obj) {
|
||||
<div class="page-content">
|
||||
<div class="theme-panel hidden-xs hidden-sm">
|
||||
<button type="button" class="btn btn-default" onclick="javascript:window.location='${ctx}/systemService/list'"><spring:message code="refresh"></spring:message></button>
|
||||
<shiro:hasPermission name="system:service:view">
|
||||
<shiro:hasPermission name="system:service:edit">
|
||||
<button type="button" class="btn btn-primary" onClick="javascript:window.location='${ctx}/systemService/systemServiceform'"><spring:message code="add"></spring:message></button>
|
||||
</shiro:hasPermission>
|
||||
</div>
|
||||
@@ -65,7 +65,7 @@ function checkNum(obj) {
|
||||
<div class="col-md-12">
|
||||
<div class="pull-left">
|
||||
<form:select path="action" class="selectpicker select2 input-small">
|
||||
<form:option value=""><spring:message code="all"/><spring:message code="act"/></form:option>
|
||||
<form:option value=""><spring:message code="all"/> <spring:message code="act"/></form:option>
|
||||
<form:option value="1"><spring:message code="block"/></form:option>
|
||||
<form:option value="2"><spring:message code="monitor"/></form:option>
|
||||
<form:option value="5"><spring:message code="block_white_list"/></form:option>
|
||||
@@ -76,7 +76,7 @@ function checkNum(obj) {
|
||||
</div>
|
||||
<div class="pull-left">
|
||||
<form:select path="serviceType" class="selectpicker select2 input-small">
|
||||
<form:option value=""><spring:message code="all"/><spring:message code='type'/></form:option>
|
||||
<form:option value=""><spring:message code="all"/> <spring:message code='type'/></form:option>
|
||||
<form:option value="1"><spring:message code="single_domain"/></form:option>
|
||||
<form:option value="2"><spring:message code="multi_domain"/></form:option>
|
||||
<form:option value="3"><spring:message code="special_service"/></form:option>
|
||||
|
||||
Reference in New Issue
Block a user