修订校验提示,,更改范围校验方式为表单标签内部校验方式,融合代码,

This commit is contained in:
zhangshilin
2018-04-09 17:56:41 +08:00
parent f78d508bf4
commit 4e11a9ce02
3 changed files with 9 additions and 15 deletions

View File

@@ -27,10 +27,8 @@
validateForm = $("#inputForm").validate({
rules:{
specServiceId:{
max: 2100000000,
remote:'${ctx}/specific/specificServiceCfg/isIdRepeat?oldId=${specificServiceCfg.specServiceId}'
},
groupId:{max:2100000000}
}
},
messages: {
specServiceId:{
@@ -109,7 +107,7 @@
<div class="form-group">
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="protocol_id"/>:</label>
<div class="col-md-4">
<input id="specServiceId" name="specServiceId" maxlength="50" class="form-control required digits max" value="${specificServiceCfg.specServiceId}"/>
<input id="specServiceId" name="specServiceId" maxlength="50" range="[0,2147483647]" class="form-control required digits" value="${specificServiceCfg.specServiceId}"/>
</div>
</div>
<div class="form-group">
@@ -121,7 +119,7 @@
<div class="form-group">
<label class="col-md-3 control-label"><spring:message code="group_id"/>:</label>
<div class="col-md-4">
<form:input path="groupId" htmlEscape="false" maxlength="50" class="form-control digits" placeholder="0"/>
<form:input path="groupId" htmlEscape="false" maxlength="50" range="[0,2147483647]" class="form-control digits" placeholder="0"/>
</div>
</div>
<div class="form-group">