Merge branch 'develop' of http://10.0.6.99/gwall/gwall.git into develop
This commit is contained in:
@@ -5,40 +5,6 @@
|
||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
areaControlInit();
|
||||
$("input[name='isAreaEffective']").on('change',function(){
|
||||
var val=$(this).val();
|
||||
if(val==1){
|
||||
$(".areaType").removeClass("hidden");
|
||||
if($("input[name='areaType']:checked").val()==1){//areaISP
|
||||
$("#areaIsp").removeClass("hidden");
|
||||
}else if($("input[name='areaType']:checked").val()==0){//areaIp
|
||||
$("#areaIp").removeClass("hidden");
|
||||
}
|
||||
}else{
|
||||
$(".areaType").addClass("hidden");
|
||||
$("#areaIp").addClass("hidden");
|
||||
$("#areaIsp").addClass("hidden");
|
||||
}
|
||||
});
|
||||
$("select[name$='ipType']").on("change",function(){
|
||||
switchIpType($(this));
|
||||
});
|
||||
$("input[name='areaType']").on('change',function(){
|
||||
var val=$(this).val();
|
||||
if($(this).is(":visible")){
|
||||
if(val==0){
|
||||
$("#areaIp").removeClass("hidden");
|
||||
$("#areaIsp").addClass("hidden");
|
||||
}else{
|
||||
$("#areaIsp").removeClass("hidden");
|
||||
$("#areaIp").addClass("hidden");
|
||||
}
|
||||
}else{
|
||||
$("#areaIsp").addClass("hidden");
|
||||
$("#areaIp").addClass("hidden");
|
||||
}
|
||||
});
|
||||
$("#cancel").on("click",function(){
|
||||
window.history.back();
|
||||
});
|
||||
@@ -123,7 +89,7 @@ $(function(){
|
||||
</div>
|
||||
<!-- desc and action -->
|
||||
<%@include file="/WEB-INF/include/form/ipInfo.jsp" %>
|
||||
<%-- <%@include file="/WEB-INF/include/form/areaInfo.jsp" %> --%>
|
||||
<%@include file="/WEB-INF/include/form/areaInfo.jsp" %>
|
||||
<input type="hidden" name="isAreaEffective" value="0">
|
||||
<%@include file="/WEB-INF/include/form/basicInfo.jsp" %>
|
||||
</div>
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
<button type="button" class="btn btn-default" id="filter-btn"> <spring:message code="filter"/> <i class="fa fa-angle-double-down"></i></button>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<shiro:hasPermission name="avContIp:config">
|
||||
<shiro:hasPermission name="avContentIp:config">
|
||||
<sys:delRow url="${ctx}/ntc/av/contentIpForm" id="contentTable" label="update"></sys:delRow>
|
||||
<sys:delRow url="${ctx}/ntc/av/updateAvContIpValid?isValid=-1&functionId=${cfg.functionId }" id="contentTable" label="delete"></sys:delRow>
|
||||
</shiro:hasPermission>
|
||||
|
||||
@@ -71,59 +71,131 @@ $(function(){
|
||||
if($(this).is(":visible")){
|
||||
if(val==0){
|
||||
$("#areaIp").removeClass("hidden");
|
||||
/*$("#areaIsp").find(".container-fluid:visible").find("input,select,div,button").each(function(){
|
||||
$(this).attr("disabled","true");
|
||||
});*/
|
||||
$("#areaIsp").addClass("hidden");
|
||||
if($("#areaIp").find(".container-fluid:visible").size() <1){
|
||||
$("#areaIp").find(".glyphicon-plus").click();
|
||||
}
|
||||
/*$("#areaIp").find(".container-fluid:visible").find("input,select,div,button").each(function(){
|
||||
$(this).removeAttr("disabled");
|
||||
});*/
|
||||
$("#areaIp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).removeAttr("disabled");
|
||||
$(this).removeClass("disabled");
|
||||
})
|
||||
});
|
||||
$("#areaIsp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).attr("disabled","disabled");
|
||||
})
|
||||
});
|
||||
}else{
|
||||
$("#areaIsp").removeClass("hidden");
|
||||
/*$("#areaIp").find(".container-fluid:visible").find("input,select,div,button").each(function(){
|
||||
$(this).attr("disabled","true");
|
||||
});*/
|
||||
$("#areaIp").addClass("hidden");
|
||||
if($("#areaIsp").find(".container-fluid:visible").size() <1){
|
||||
$("#areaIsp").find(".glyphicon-plus").click();
|
||||
}
|
||||
/*$("#areaIsp").find(".container-fluid:visible").find("input,select,div,button").each(function(){
|
||||
$(this).removeAttr("disabled");
|
||||
});*/
|
||||
$("#areaIsp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).removeAttr("disabled");
|
||||
$(this).removeClass("disabled");
|
||||
})
|
||||
});
|
||||
$("#areaIp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).attr("disabled","disabled");
|
||||
})
|
||||
});
|
||||
}
|
||||
}else{
|
||||
$("#areaIsp").addClass("hidden");
|
||||
$("#areaIp").addClass("hidden");
|
||||
$("#areaIsp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).attr("disabled","disabled");
|
||||
})
|
||||
});
|
||||
$("#areaIp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).attr("disabled","disabled");
|
||||
})
|
||||
});
|
||||
}
|
||||
});
|
||||
$("input[name='isAreaEffective']").on('change',function(){
|
||||
var val=$(this).val();
|
||||
if(val==1){
|
||||
$(".areaType").find("input,select,div,button").each(function(){
|
||||
$(this).removeAttr("disabled");
|
||||
$(this).removeClass("disabled");
|
||||
});
|
||||
$(".areaType").removeClass("hidden");
|
||||
if($("input[name='areaType']:checked").val()==1){//areaISP
|
||||
$("#areaIsp").removeClass("hidden");
|
||||
if($("#areaIsp").find(".container-fluid:visible").size() <1){
|
||||
$("#areaIsp").find(".glyphicon-plus").click();
|
||||
}
|
||||
$("#areaIsp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).removeAttr("disabled");
|
||||
$(this).removeClass("disabled");
|
||||
})
|
||||
});
|
||||
$("#areaIp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).attr("disabled","disabled");
|
||||
})
|
||||
});
|
||||
}else if($("input[name='areaType']:checked").val()==0){//areaIp
|
||||
$("#areaIp").removeClass("hidden");
|
||||
if($("#areaIp").find(".container-fluid:visible").size() <1){
|
||||
$("#areaIp").find(".glyphicon-plus").click();
|
||||
}
|
||||
$("#areaIp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).removeAttr("disabled");
|
||||
$(this).removeClass("disabled");
|
||||
})
|
||||
});
|
||||
$("#areaIsp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).attr("disabled","disabled");
|
||||
})
|
||||
});
|
||||
}else{
|
||||
$(".areaType").find("[value='1']").prop("checked",true);
|
||||
$("#areaIsp").removeClass("hidden");
|
||||
if($("#areaIsp").find(".container-fluid:visible").size() <1){
|
||||
$("#areaIsp").find(".glyphicon-plus").click();
|
||||
}
|
||||
$("#areaIsp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).removeAttr("disabled");
|
||||
$(this).removeClass("disabled");
|
||||
})
|
||||
});
|
||||
$("#areaIp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).attr("disabled","disabled");
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
}else{
|
||||
$(".areaType").addClass("hidden");
|
||||
$("#areaIp").addClass("hidden");
|
||||
$("#areaIsp").addClass("hidden");
|
||||
|
||||
$(".areaType").find("input,select,div,button").each(function(){
|
||||
$(this).attr("disabled","disabled");
|
||||
});
|
||||
$("#areaIsp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).attr("disabled","disabled");
|
||||
})
|
||||
});
|
||||
$("#areaIp").find(".container-fluid").each(function(){
|
||||
$(this).find("input,select,div,button").each(function(){
|
||||
$(this).attr("disabled","disabled");
|
||||
})
|
||||
});
|
||||
}
|
||||
});
|
||||
areaControlInit();
|
||||
|
||||
Reference in New Issue
Block a user