1、http配置提交验证配置是否为空的逻辑修改,如当前为请求配置必须添加一条请求配置,如当前为应答配置必须添加一条应答配置
2、IP配置表单删除多余JS Signed-off-by: zhangwei <zhangwei@intranet.com>
This commit is contained in:
@@ -4,9 +4,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
|
||||||
switchIpInfo($("select[name$='ipType']"),"ipType");
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<%-- <c:forEach items="${regionList}" var="regionDistrict">
|
<%-- <c:forEach items="${regionList}" var="regionDistrict">
|
||||||
|
|||||||
@@ -52,12 +52,19 @@
|
|||||||
},
|
},
|
||||||
submitHandler : function(form) {
|
submitHandler : function(form) {
|
||||||
//loading('onloading...');
|
//loading('onloading...');
|
||||||
//代表所有业务都隐藏了,提示必须增加一种业务数据
|
|
||||||
var flag = true;
|
var flag = true;
|
||||||
//代表所有业务都隐藏了,提示必须增加一种业务数据
|
//代表所有业务都隐藏了,提示必须增加一种业务数据
|
||||||
if($(".boxSolid").length ==$(".boxSolid.hidden").length){
|
if(!$(".httpReqCfg").hasClass("hidden")){
|
||||||
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
|
if($(".httpReqCfg").find(".boxSolid").length==$(".httpReqCfg").find(".boxSolid.hidden").length){
|
||||||
return;
|
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!$(".httpResCfg").hasClass("hidden")){
|
||||||
|
if($(".httpResCfg").find(".boxSolid").length==$(".httpResCfg").find(".boxSolid.hidden").length){
|
||||||
|
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//代表所有区域都隐藏了,提示必须增加个区域信息
|
//代表所有区域都隐藏了,提示必须增加个区域信息
|
||||||
if($("input[name='isAreaEffective']:checked").val()==1 && $(".container-fluid:visible").size()==0){
|
if($("input[name='isAreaEffective']:checked").val()==1 && $(".container-fluid:visible").size()==0){
|
||||||
@@ -225,7 +232,8 @@
|
|||||||
<c:forEach items="${_cfg.ipPortList}" var="ipPort"
|
<c:forEach items="${_cfg.ipPortList}" var="ipPort"
|
||||||
varStatus="status">
|
varStatus="status">
|
||||||
<c:set var="cfgName" value="ipPortList[${status.index}]"></c:set>
|
<c:set var="cfgName" value="ipPortList[${status.index}]"></c:set>
|
||||||
<div class="row boxSolid ${tabName}${status.index}" >
|
<div class="row boxSolid ${tabName}${status.index}
|
||||||
|
<c:if test="${empty ipPort.cfgId}">hidden disabled </c:if>" >
|
||||||
<%@include file="/WEB-INF/views/cfg/ipCfgForm.jsp"%>
|
<%@include file="/WEB-INF/views/cfg/ipCfgForm.jsp"%>
|
||||||
</div>
|
</div>
|
||||||
<c:set var="ipCfgIndex" value="${ipCfgIndex+1}"></c:set>
|
<c:set var="ipCfgIndex" value="${ipCfgIndex+1}"></c:set>
|
||||||
@@ -250,7 +258,8 @@
|
|||||||
<c:forEach items="${_cfg.httpUrlList}" var="strCfg"
|
<c:forEach items="${_cfg.httpUrlList}" var="strCfg"
|
||||||
varStatus="status">
|
varStatus="status">
|
||||||
<c:set var="cfgName" value="httpUrlList[${status.index}]"></c:set>
|
<c:set var="cfgName" value="httpUrlList[${status.index}]"></c:set>
|
||||||
<div class="row boxSolid ${tabName}${status.index} " >
|
<div class="row boxSolid ${tabName}${status.index}
|
||||||
|
<c:if test="${empty strCfg.cfgId}">hidden disabled </c:if>" >
|
||||||
<%@include file="/WEB-INF/views/cfg/stringCfgForm.jsp"%>
|
<%@include file="/WEB-INF/views/cfg/stringCfgForm.jsp"%>
|
||||||
</div>
|
</div>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
@@ -272,7 +281,7 @@
|
|||||||
<c:forEach items="${_cfg.httpReqBodyList}" var="strCfg"
|
<c:forEach items="${_cfg.httpReqBodyList}" var="strCfg"
|
||||||
varStatus="status">
|
varStatus="status">
|
||||||
<c:set var="cfgName" value="httpReqBodyList[${status.index}]"></c:set>
|
<c:set var="cfgName" value="httpReqBodyList[${status.index}]"></c:set>
|
||||||
<div class="row boxSolid ${tabName}${status.index} " >
|
<div class="row boxSolid ${tabName}${status.index} <c:if test="${empty strCfg.cfgId}">hidden disabled </c:if>" >
|
||||||
<%@include file="/WEB-INF/views/cfg/stringCfgForm.jsp"%>
|
<%@include file="/WEB-INF/views/cfg/stringCfgForm.jsp"%>
|
||||||
</div>
|
</div>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
@@ -294,7 +303,7 @@
|
|||||||
<c:forEach items="${_cfg.httpResBodyList}" var="strCfg"
|
<c:forEach items="${_cfg.httpResBodyList}" var="strCfg"
|
||||||
varStatus="status">
|
varStatus="status">
|
||||||
<c:set var="cfgName" value="httpResBodyList[${status.index}]"></c:set>
|
<c:set var="cfgName" value="httpResBodyList[${status.index}]"></c:set>
|
||||||
<div class="row boxSolid ${tabName}${status.index} " >
|
<div class="row boxSolid ${tabName}${status.index} <c:if test="${empty strCfg.cfgId}">hidden disabled </c:if>" >
|
||||||
<%@include file="/WEB-INF/views/cfg/stringCfgForm.jsp"%>
|
<%@include file="/WEB-INF/views/cfg/stringCfgForm.jsp"%>
|
||||||
</div>
|
</div>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
@@ -317,7 +326,7 @@
|
|||||||
<c:forEach items="${_cfg.httpReqHdrList}" var="complexCfg"
|
<c:forEach items="${_cfg.httpReqHdrList}" var="complexCfg"
|
||||||
varStatus="status">
|
varStatus="status">
|
||||||
<c:set var="cfgName" value="httpReqHdrList[${status.index}]"></c:set>
|
<c:set var="cfgName" value="httpReqHdrList[${status.index}]"></c:set>
|
||||||
<div class="row boxSolid ${tabName}${status.index} ">
|
<div class="row boxSolid ${tabName}${status.index} <c:if test="${empty complexCfg.cfgId}">hidden disabled </c:if>">
|
||||||
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
||||||
</div>
|
</div>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
@@ -338,7 +347,7 @@
|
|||||||
<c:forEach items="${_cfg.httpResHdrList}" var="complexCfg"
|
<c:forEach items="${_cfg.httpResHdrList}" var="complexCfg"
|
||||||
varStatus="status">
|
varStatus="status">
|
||||||
<c:set var="cfgName" value="httpResHdrList[${status.index}]"></c:set>
|
<c:set var="cfgName" value="httpResHdrList[${status.index}]"></c:set>
|
||||||
<div class="row boxSolid ${tabName}${status.index} ">
|
<div class="row boxSolid ${tabName}${status.index} <c:if test="${empty complexCfg.cfgId}">hidden disabled </c:if>">
|
||||||
|
|
||||||
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user