修正特定服务的form表单字段描述

This commit is contained in:
wangxin
2018-08-30 10:15:33 +08:00
parent 8b48aa4a50
commit cdef327c90

View File

@@ -92,7 +92,8 @@
}
}
});
//$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
$("input[name='specServiceCode']").attr("range","[300001,310000]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="app_name"/>:');
$(".protocol_desc").html('<spring:message code="app_desc"/>:');
}else{
@@ -114,15 +115,18 @@
}
});
if($("[name='cfgType']").val()==1){
//$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
$("input[name='specServiceCode']").attr("range","[300001,310000]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="app_name"/>:');
$(".protocol_desc").html('<spring:message code="app_desc"/>:');
}else if($("[name='cfgType']").val()==2){
//$(".protocol_code").html('<font color="red">*</font><spring:message code="tunnel_code"/>:');
$(".protocol_code").html('<font color="red">*</font><spring:message code="tunnel_code"/>:');
$("input[name='specServiceCode']").attr("range","[0,2147483647]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="tunnel_name"/>:');
$(".protocol_desc").html('<spring:message code="tunnel_desc"/>:');
}else{
//$(".protocol_code").html('<font color="red">*</font><spring:message code="protocol_code"/>:');
$(".protocol_code").html('<font color="red">*</font><spring:message code="protocol_code"/>:');
$("input[name='specServiceCode']").attr("range","[10001,20000]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="protocol_name"/>:');
$(".protocol_desc").html('<spring:message code="protocol_desc"/>:');
}
@@ -155,15 +159,18 @@
}
});
if(cfgType==1){
//$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
$("input[name='specServiceCode']").attr("range","[300001,310000]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="app_name"/>:');
$(".protocol_desc").html('<spring:message code="app_desc"/>:');
}else if(cfgType==2){
//$(".protocol_code").html('<font color="red">*</font><spring:message code="tunnel_code"/>:');
$(".protocol_code").html('<font color="red">*</font><spring:message code="tunnel_code"/>:');
$("input[name='specServiceCode']").attr("range","[0,2147483647]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="tunnel_name"/>:');
$(".protocol_desc").html('<spring:message code="tunnel_desc"/>:');
}else{
//$(".protocol_code").html('<font color="red">*</font><spring:message code="protocol_code"/>:');
$(".protocol_code").html('<font color="red">*</font><spring:message code="protocol_code"/>:');
$("input[name='specServiceCode']").attr("range","[10001,20000]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="protocol_name"/>:');
$(".protocol_desc").html('<spring:message code="protocol_desc"/>:');
}
@@ -254,7 +261,7 @@
</div>
</c:if>
<c:if test="${dict.itemCode==3}">
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="APP_BUSINESS_TYPE"/>:</label>
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="basic_protocol_business_type"/>:</label>
<div class="col-md-4">
<select id="businessType3" name="businessType" class="form-control required" data-live-search="true" data-live-search-placeholder="search">
<option value=""><spring:message code="select"/></option>
@@ -281,8 +288,8 @@
</c:if>
<div for="businessType"></div>
</div>
<c:if test="${dict.itemCode==1}">
<div class="form-group cfgType specServiceCode">
<%-- <c:if test="${dict.itemCode==1}">
<div class="form-group cfgType">
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="app_code"/>:</label>
<div class="col-md-4">
<input id="specServiceCode${dict.itemCode}" name="specServiceCode" maxlength="50" range="[300001,310000]" class="form-control required digits specServiceCodeCheck" value="${specificServiceCfg.specServiceCode}" ctx="${ctx}"/>
@@ -290,7 +297,7 @@
<div for="specServiceCode"></div>
</div>
</c:if>
<c:if test="${dict.itemCode==2}">
<c:if test="${dict.itemCode==3}">
<div class="form-group cfgType">
<label class="col-md-3 control-label protocol_code"><font color="red">*</font><spring:message code="protocol_code"/>:</label>
<div class="col-md-4">
@@ -299,7 +306,7 @@
<div for="specServiceCode"></div>
</div>
</c:if>
<c:if test="${dict.itemCode==3}">
<c:if test="${dict.itemCode==2}">
<div class="form-group cfgType">
<label class="col-md-3 control-label protocol_code"><font color="red">*</font><spring:message code="tunnel_code"/>:</label>
<div class="col-md-4">
@@ -307,7 +314,7 @@
</div>
<div for="specServiceCode"></div>
</div>
</c:if>
</c:if> --%>
</c:forEach>
<div class="form-group">
<label class="col-md-3 control-label protocol_code"><font color="red">*</font><spring:message code="protocol_code"/>:</label>
@@ -315,7 +322,7 @@
<input id="specServiceCode" name="specServiceCode" maxlength="50" range="[0,2147483647]" class="form-control required digits specServiceCodeCheck" value="${specificServiceCfg.specServiceCode}" ctx="${ctx}"/>
</div>
<div for="specServiceCode"></div>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label protocol_name"><font color="red">*</font><spring:message code="protocol_name"/>:</label>
<div class="col-md-4">