1、修复voip修改时,无法及时更新去信息bug
2、增加voip配置下发功能 3、修改区域信息选择,至少添加一条ip或isp信息
This commit is contained in:
@@ -88,7 +88,7 @@ $(function(){
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="pull-right">
|
||||
<span class="glyphicon glyphicon-remove" title="remove" onClick="delAreaIsp(this);"/>
|
||||
<span class="glyphicon glyphicon-remove <c:if test="${status.index==0 }">hidden</c:if>" title="remove" onClick="delAreaIsp(this);"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -142,13 +142,15 @@ $(function(){
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="ip_type"/></label>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="ip_pattern"/></label>
|
||||
<div class="col-md-6">
|
||||
<select name="_areaCfg.ipType" class="selectpicker show-tick form-control required">
|
||||
<c:forEach items="${fns:getDictList('IP_TYPE')}" var="ipType">
|
||||
<option value="${ipType.itemCode}">${ipType.itemValue}</option>
|
||||
|
||||
<select id="_areaCfg.ipType" class="show-tick form-control required">
|
||||
<c:forEach items="${fns:getDictList('IP_TYPE')}" var="ipTypeC">
|
||||
<option value="${ipTypeC.itemCode}">${ipTypeC.itemValue}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
@@ -263,7 +265,7 @@ $(function(){
|
||||
<input type="hidden" name="areaCfg[${status.index}].isAreaEffective" value="${areaCfg.isAreaEffective}">
|
||||
<input name="areaCfg[${status.index}].cfgId" type="hidden" value="${areaCfg.cfgId}">
|
||||
<div class="pull-right">
|
||||
<span class="glyphicon glyphicon-remove" title="remove" onClick="delAreaIp(this);"/>
|
||||
<span class="glyphicon glyphicon-remove <c:if test="${status.index==0 }">hidden</c:if>" title="remove" onClick="delAreaIp(this);"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
@@ -30,13 +30,6 @@ $(function(){
|
||||
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($("#areaIsp").hasClass("hidden")) $("#areaIp").find(".glyphicon-plus").click();
|
||||
if($("#areaIp").hasClass("hidden")) $("#areaIsp").find(".glyphicon-plus").click();
|
||||
top.$.jBox.tip("<spring:message code='one_more_area'/>", "<spring:message code='info'/>");
|
||||
return;
|
||||
}
|
||||
form.submit();
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
|
||||
@@ -43,6 +43,9 @@ $(function(){
|
||||
$("#areaIsp").find(".container-fluid").each(function(){
|
||||
if(!$(this).hasClass("hidden")) $(this).remove();
|
||||
});
|
||||
if(len==0){
|
||||
$("#areaIp").find(".container-fluid:visible").eq(0).find("span[title=remove]").addClass("hidden");
|
||||
}
|
||||
}else if($(this).parent().parent().parent().attr("id")=="areaIsp"){
|
||||
obj.find("[name^='areaCode']").each(function(){
|
||||
$(this).attr("name","areaIsp["+len+"].area");
|
||||
@@ -58,6 +61,9 @@ $(function(){
|
||||
$("#areaIp").find(".container-fluid").each(function(){
|
||||
if(!$(this).hasClass("hidden")) $(this).remove();
|
||||
});
|
||||
if(len==0){
|
||||
$("#areaIsp").find(".container-fluid:visible").eq(0).find("span[title=remove]").addClass("hidden");
|
||||
}
|
||||
}
|
||||
});
|
||||
$("input[name='areaType']").on('change',function(){
|
||||
@@ -65,16 +71,28 @@ $(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");
|
||||
});*/
|
||||
}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");
|
||||
});*/
|
||||
}
|
||||
}else{
|
||||
$("#areaIsp").addClass("hidden");
|
||||
|
||||
Reference in New Issue
Block a user