基础协议,APP协议配置,监测业务,ip域默认展开,并且必须输入

This commit is contained in:
wangxin
2018-09-12 13:20:38 +08:00
parent 46253186a6
commit ef5e737bd4
5 changed files with 22 additions and 5 deletions

View File

@@ -1145,4 +1145,5 @@ dest_country=Dest IP Country
MM_SPEAKER_RECOGNIZATION=Speaker Recognization
MM_LOGO_DETECTION=Logo Detection
MM_FACE_RECOGNIZATION=Face Recognization
preset=Preset
preset=Preset
ip_must_select=IP Configuration must select

View File

@@ -1136,4 +1136,5 @@ dest_country=\u0421\u0442\u0440\u0430\u043D\u0430 \u0446\u0435\u043B\u0435\u0432
MM_SPEAKER_RECOGNIZATION=Speaker Recognization
MM_LOGO_DETECTION=Logo Detection
MM_FACE_RECOGNIZATION=Face Recognization
preset=Preset
preset=Preset
ip_must_select=IP配置必选

View File

@@ -1143,4 +1143,5 @@ dest_country=\u76EE\u7684IP\u6240\u5C5E\u56FD\u5BB6
MM_SPEAKER_RECOGNIZATION=\u8BF4\u8BDD\u4EBA\u8BC6\u522B
MM_LOGO_DETECTION=\u53F0\u6807\u8BC6\u522B
MM_FACE_RECOGNIZATION=\u4EBA\u8138\u8BC6\u522B
preset=\u9884\u7F6E
preset=\u9884\u7F6E
ip_must_select=IP\u914D\u7F6E\u5FC5\u9009

View File

@@ -18,6 +18,9 @@ $(function(){
}else{
$(".subscribeId").hide();
}
if($(this).val()==1){
$(".ipPortAdd").click();
}
});
$("#serviceId").val($(".action:checked").attr("serviceId"));
$("#protocolId").val($(".action:checked").attr("protocolId"));
@@ -46,6 +49,10 @@ $(function(){
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
return;
} */
if($("[name=action]:checked").val()==1&&$(".ipPortAdd").parents(".form-section").next(".boxSolid").is(":hidden")){
top.$.jBox.tip("<spring:message code='ip_must_select'/>", "<spring:message code='info'/>");
return false;
}
$(".boxSolid:visible").find("input[name$='cfgKeywords']").each(function(){
if($(this).val()==''){
$(this).parents(".form-group").find(
@@ -330,7 +337,7 @@ var delContent = function(contentClassName, addBtnClassName) {
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
<spring:message code="NTC_UNIVERSAL_IP" />
<small> <span
class="glyphicon glyphicon-plus ${tabName}Add"
class="glyphicon glyphicon-plus ${tabName}Add ipPortAdd"
onClick="addContent(this,'${tabName}')" title="add"></span></small>
</h4>
<c:set var="cfgName" value="ipPortList[${ipCfgIndex}]"></c:set>

View File

@@ -24,6 +24,9 @@ $(function(){
}else{
$("#ratelimit").hide();
}
if($(this).val()==1){
$(".ipPortAdd").click();
}
});
$("#serviceId").val($(".action:checked").attr("serviceId"));
$("#protocolId").val($(".action:checked").attr("protocolId"));
@@ -51,6 +54,10 @@ $(function(){
}
*/
var flag = true;
if($("[name=action]:checked").val()==1&&$(".ipPortAdd").parents(".form-section").next(".boxSolid").is(":hidden")){
top.$.jBox.tip("<spring:message code='ip_must_select'/>", "<spring:message code='info'/>");
return false;
}
$(".boxSolid:visible").find("input[name$='cfgKeywords']").each(function(){
if($(this).val()==''){
@@ -299,7 +306,7 @@ var delContent = function(contentClassName, addBtnClassName) {
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
<spring:message code="NTC_UNIVERSAL_IP" />
<small> <span
class="glyphicon glyphicon-plus ${tabName}Add"
class="glyphicon glyphicon-plus ${tabName}Add ipPortAdd"
onClick="addContent(this,'${tabName}')" title="add"></span></small>
</h4>
<c:set var="cfgName" value="ipPortList[${ipCfgIndex}]"></c:set>