首页来函业务类型统计功能
修改部分页面十六进制校验不生效bug 更换logo
This commit is contained in:
@@ -31,19 +31,19 @@ $(function(){
|
||||
flag = false;
|
||||
}
|
||||
})
|
||||
/* $("select[name$='isHexbin']").each(function(){
|
||||
$("select[name$='isHexbin']").each(function(){
|
||||
var isHexbin=$(this).val();
|
||||
if(isHexbin == 1){
|
||||
var keywords=$("input[name$='"+$(this).attr("name").replace("isHexbin","cfgKeywords")+"']").val();
|
||||
if(!(/^([0-9|a-f|A-F]*)$/.test(keywords))){
|
||||
$(this).parents(".form-group").find(
|
||||
$(this).parents(".form-body").find(
|
||||
"div[for='"
|
||||
+ $(this).attr("name").replace("isHexbin","cfgKeywords")
|
||||
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$.validator.messages.hexCheck+"</label>");
|
||||
flag = false;
|
||||
}
|
||||
}
|
||||
}); */
|
||||
});
|
||||
if(flag){
|
||||
$("input[name$='exprType']").attr("disabled",false);
|
||||
$("#appCode").val($("#specServiceIdId").val());
|
||||
|
||||
@@ -275,7 +275,7 @@
|
||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||
<th class="cfgDesc"><spring:message code="config_describe"/></th>
|
||||
<th><spring:message code="social_app"/></th>
|
||||
<th>IP<spring:message code="type"/></th>
|
||||
<th>IP <spring:message code="type"/></th>
|
||||
<%-- <th><spring:message code="client_ip"/></th>
|
||||
<th><spring:message code="client_port"/></th> --%>
|
||||
<th><spring:message code="server_ip"/></th>
|
||||
|
||||
@@ -41,9 +41,21 @@ $(function(){
|
||||
+ $(this).attr("name")
|
||||
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$("#keywordError").text()+"</label>");
|
||||
flag = false;
|
||||
return;
|
||||
}
|
||||
})
|
||||
$("select[name$='isHexbin']").each(function(){
|
||||
var isHexbin=$(this).val();
|
||||
if(isHexbin == 1){ //十六进制
|
||||
var keywords=$("input[name$='"+$(this).attr("name").replace("isHexbin","cfgKeywords")+"']").val();
|
||||
if(!(/^([0-9|a-f|A-F]*)$/.test(keywords))){
|
||||
$(this).parents(".form-body").find(
|
||||
"div[for='"
|
||||
+ $(this).attr("name").replace("isHexbin","cfgKeywords")
|
||||
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$.validator.messages.hexCheck+"</label>");
|
||||
flag = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
if(flag){
|
||||
//将disable属性的元素删除
|
||||
$(".disabled").each(function(){
|
||||
@@ -59,6 +71,8 @@ $(function(){
|
||||
/* $("#appCode").val($("#specServiceIdId").val()); */
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
}else{
|
||||
return;
|
||||
}
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
|
||||
@@ -30,7 +30,6 @@ $(function(){
|
||||
+ $(this).attr("name")
|
||||
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$("#keywordError").text()+"</label>");
|
||||
flag = false;
|
||||
return;
|
||||
}/* else if(!(/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test($(this).val()))){
|
||||
$(this).parents(".form-group").find(
|
||||
"div[for='"
|
||||
@@ -40,10 +39,25 @@ $(function(){
|
||||
return;
|
||||
} */
|
||||
})
|
||||
$("select[name$='isHexbin']").each(function(){
|
||||
var isHexbin=$(this).val();
|
||||
if(isHexbin == 1){ //十六进制
|
||||
var keywords=$("input[name$='"+$(this).attr("name").replace("isHexbin","cfgKeywords")+"']").val();
|
||||
if(!(/^([0-9|a-f|A-F]*)$/.test(keywords))){
|
||||
$(this).parents(".form-body").find(
|
||||
"div[for='"
|
||||
+ $(this).attr("name").replace("isHexbin","cfgKeywords")
|
||||
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$.validator.messages.hexCheck+"</label>");
|
||||
flag = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
if(flag){
|
||||
loading('onloading...');
|
||||
$("input[name$='exprType']").attr("disabled",false);
|
||||
form.submit();
|
||||
}else{
|
||||
return;
|
||||
}
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
@@ -52,7 +66,8 @@ $(function(){
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||
<div class="page-content">
|
||||
|
||||
<h3 class="page-title">
|
||||
|
||||
@@ -33,10 +33,25 @@ $(function(){
|
||||
return;
|
||||
}
|
||||
})
|
||||
$("select[name$='isHexbin']").each(function(){
|
||||
var isHexbin=$(this).val();
|
||||
if(isHexbin == 1){ //十六进制
|
||||
var keywords=$("input[name$='"+$(this).attr("name").replace("isHexbin","cfgKeywords")+"']").val();
|
||||
if(!(/^([0-9|a-f|A-F]*)$/.test(keywords))){
|
||||
$(this).parents(".form-body").find(
|
||||
"div[for='"
|
||||
+ $(this).attr("name").replace("isHexbin","cfgKeywords")
|
||||
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$.validator.messages.hexCheck+"</label>");
|
||||
flag = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
if(flag){
|
||||
$("input[name$='exprType']").attr("disabled",false);
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
}else{
|
||||
return;
|
||||
}
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
@@ -45,7 +60,8 @@ $(function(){
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||
<div class="page-content">
|
||||
|
||||
<h3 class="page-title">
|
||||
|
||||
@@ -41,9 +41,21 @@ $(function(){
|
||||
+ $(this).attr("name")
|
||||
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$("#keywordError").text()+"</label>");
|
||||
flag = false;
|
||||
return;
|
||||
}
|
||||
})
|
||||
$("select[name$='isHexbin']").each(function(){
|
||||
var isHexbin=$(this).val();
|
||||
if(isHexbin == 1){ //十六进制
|
||||
var keywords=$($(this).attr("name").replace("isHexbin","cfgKeywords")).val();
|
||||
if(!(/^([0-9|a-f|A-F]*)$/.test(keywords))){
|
||||
$(this).parents(".form-body").find(
|
||||
"div[for='"
|
||||
+ $(this).attr("name").replace("isHexbin","cfgKeywords")
|
||||
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$.validator.messages.hexCheck+"</label>");
|
||||
flag = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
if(flag){
|
||||
//将disable属性的元素删除
|
||||
$(".disabled").each(function(){
|
||||
@@ -59,6 +71,8 @@ $(function(){
|
||||
/* $("#appCode").val($("#specServiceIdId").val()); */
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
}else{
|
||||
return;
|
||||
}
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
@@ -81,7 +95,8 @@ var delContent = function(contentClassName, addBtnClassName) {
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||
<div class="page-content">
|
||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
||||
<c:if test="${dict.itemValue eq 'basic_protocol'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
||||
|
||||
@@ -41,9 +41,21 @@ $(function(){
|
||||
+ $(this).attr("name")
|
||||
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$("#keywordError").text()+"</label>");
|
||||
flag = false;
|
||||
return;
|
||||
}
|
||||
})
|
||||
$("select[name$='isHexbin']").each(function(){
|
||||
var isHexbin=$(this).val();
|
||||
if(isHexbin == 1){ //十六进制
|
||||
var keywords=$("input[name$='"+$(this).attr("name").replace("isHexbin","cfgKeywords")+"']").val();
|
||||
if(!(/^([0-9|a-f|A-F]*)$/.test(keywords))){
|
||||
$(this).parents(".form-body").find(
|
||||
"div[for='"
|
||||
+ $(this).attr("name").replace("isHexbin","cfgKeywords")
|
||||
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$.validator.messages.hexCheck+"</label>");
|
||||
flag = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
if(flag){
|
||||
//将disable属性的元素删除
|
||||
$(".disabled").each(function(){
|
||||
@@ -59,6 +71,8 @@ $(function(){
|
||||
/* $("#appCode").val($("#specServiceIdId").val()); */
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
}else{
|
||||
return;
|
||||
}
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
@@ -130,7 +144,8 @@ var delContent = function(contentClassName, addBtnClassName) {
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||
<div class="page-content">
|
||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
||||
<c:if test="${dict.itemValue eq 'encrypted_tunnel_behavior'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
||||
|
||||
@@ -3,6 +3,27 @@
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
.statisticsRequest{
|
||||
padding:10px 0px 0px 10px;
|
||||
width:99%
|
||||
}
|
||||
.statisticsStatus{
|
||||
padding:10px 0px 0px 10px;
|
||||
width:99%
|
||||
}
|
||||
.page{
|
||||
padding:8px 0px 5px 0px;
|
||||
}
|
||||
.tableDiv{
|
||||
width:100%;
|
||||
overflow-x:auto;
|
||||
}
|
||||
.table {
|
||||
margin-bottom: 0px;
|
||||
margin-top: 0px;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.table > thead > tr > th {
|
||||
vertical-align: bottom;
|
||||
border-bottom: 2px solid #e7ecf1; }
|
||||
@@ -48,84 +69,94 @@
|
||||
.table-bordered > thead > tr > td {
|
||||
border-bottom-width: 2px; }
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
closeTip();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<title>index</title>
|
||||
</head>
|
||||
|
||||
<body class="page-full-width">
|
||||
<!--<input id="page_load_num" type="hidden" />
|
||||
<div id="alert" class="modal hide fade">
|
||||
<div class="modal-header" id="modal_title">
|
||||
<button type="button" class="close" data-dismiss="modal"
|
||||
aria-hidden="true"></button>
|
||||
<h3>
|
||||
Note
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="modal-body" id="modal_body">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" id="OK" class="btn red"
|
||||
onclick="statisticProtocol()">
|
||||
<s:text name="button.confirm"/>
|
||||
</button>
|
||||
<button type="button" data-dismiss="modal" class="btn">
|
||||
<s:text name="button.cancel"/>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
</div> -->
|
||||
<div class="page-content">
|
||||
<font size="4"><i class="fa fa-cogs"><spring:message code="configure_statistics_info"/></i></font> <a style="color:#333333" href="${ctx}/configure/statistics/configureStateStatistics" class="icon-refresh pull-right"> </a>
|
||||
<div class="statisticsRequest">
|
||||
<form id="searchForm" action="${ctx}/configure/statistics/configureStateStatistics" >
|
||||
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
||||
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
||||
<font size="4"><i class="fa fa-cogs"> <spring:message code="letter_statistics_info"/></i></font> <a style="color:#333333" href="javascript:page(${page.pageNo},${page.pageSize});" class="icon-refresh pull-right"> </a>
|
||||
<h5 class="page-header"></h5>
|
||||
<table id="contentTable" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||
<div class="tableDiv">
|
||||
<table id="contentTable" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><spring:message code="service_name"/></th>
|
||||
<th><spring:message code="approved"/></th>
|
||||
<th><spring:message code="unapproved"/></th>
|
||||
<th><spring:message code="cancel_approved"/></th>
|
||||
<th><spring:message code="created"/></th>
|
||||
<th><spring:message code="deleted"/></th>
|
||||
<th><spring:message code="letter"/></th>
|
||||
<c:forEach items="${serviceList }" var="serviceDict" varStatus="status" step="1">
|
||||
<th><spring:message code="${serviceDict.serviceName }"/></th>
|
||||
</c:forEach>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach items="${configStatistics }" var="statistics" varStatus="status" step="1">
|
||||
<c:set var="serviceName" value=""></c:set>
|
||||
<c:forEach items="${serviceList }" var="serviceDict" varStatus="status" step="1">
|
||||
<c:if test="${serviceDict.serviceId eq statistics.service }">
|
||||
<c:set var="serviceName" value="${serviceDict.serviceName }"></c:set>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${!empty serviceName }">
|
||||
<tr>
|
||||
<td>
|
||||
<spring:message code="${serviceName }"/>
|
||||
</td>
|
||||
<td>
|
||||
${statistics.approved }
|
||||
</td>
|
||||
<td>
|
||||
${statistics.unapproved }
|
||||
</td>
|
||||
<td>
|
||||
${statistics.cancle_approved }
|
||||
</td>
|
||||
<td>
|
||||
${statistics.created }
|
||||
</td>
|
||||
<td>
|
||||
${statistics.deleted }
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<c:forEach items="${page.list }" var="requestStatistics" varStatus="statusRequest" step="1">
|
||||
<tr>
|
||||
<td>${requestStatistics['request']}</td>
|
||||
<c:forEach items="${serviceList }" var="serviceDict" varStatus="status" step="1">
|
||||
<td>${requestStatistics[serviceDict.serviceName]}</td>
|
||||
</c:forEach>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<div class="page">${page}</div>
|
||||
</div>
|
||||
<div class="statisticsStatus">
|
||||
<font size="4"><i class="fa fa-cogs"> <spring:message code="configure_statistics_info"/></i></font> <a style="color:#333333" href="javascript:page(${page.pageNo},${page.pageSize});" class="icon-refresh pull-right"> </a>
|
||||
<h5 class="page-header"></h5>
|
||||
<table id="contentTable" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><spring:message code="service_name"/></th>
|
||||
<th><spring:message code="approved"/></th>
|
||||
<th><spring:message code="unapproved"/></th>
|
||||
<th><spring:message code="cancel_approved"/></th>
|
||||
<th><spring:message code="created"/></th>
|
||||
<th><spring:message code="deleted"/></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach items="${configStatistics }" var="statistics" varStatus="status" step="1">
|
||||
<c:set var="serviceName" value=""></c:set>
|
||||
<c:forEach items="${serviceList }" var="serviceDict" varStatus="status" step="1">
|
||||
<c:if test="${serviceDict.serviceId eq statistics.service }">
|
||||
<c:set var="serviceName" value="${serviceDict.serviceName }"></c:set>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${!empty serviceName }">
|
||||
<tr>
|
||||
<td>
|
||||
<spring:message code="${serviceName }"/>
|
||||
</td>
|
||||
<td>
|
||||
${statistics.approved }
|
||||
</td>
|
||||
<td>
|
||||
${statistics.unapproved }
|
||||
</td>
|
||||
<td>
|
||||
${statistics.cancle_approved }
|
||||
</td>
|
||||
<td>
|
||||
${statistics.created }
|
||||
</td>
|
||||
<td>
|
||||
${statistics.deleted }
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
BIN
src/main/webapp/static/pages/img/logo1.png
Normal file
BIN
src/main/webapp/static/pages/img/logo1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user