十六进制校验去掉关键字的间隔符

This commit is contained in:
duandongmei
2018-09-13 18:14:38 +08:00
parent e5b7661fbc
commit c49bf6985e
26 changed files with 59 additions and 103 deletions

View File

@@ -51,31 +51,8 @@
top.$.jBox.tip("<spring:message code='one_more_area'/>", "<spring:message code='info'/>");
return;
}
$(".boxSolid:visible").find("input[name$='cfgKeywords']").each(function(){
if($(this).val()==''){
$(this).parents(".form-group").find(
"div[for='"
+ $(this).attr("name")
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$("#keywordError").text()+"</label>");
flag = false;
}
});
//keywords非空校验完成校验二进制字符串
$(".boxSolid:visible").find("select[name$='isHexbin']").each(function(){
var isHexbin=$(this).val();
if(isHexbin == 1){ //十六进制
var keywords=$("input[name$='"+$(this).attr("name").replace("isHexbin","cfgKeywords")+"']").val();
if(keywords != ''){
if(!(/^([0-9|a-f|A-F]*)$/.test(keywords))){
$(this).parents(".boxSolid").find(
"div[for='"
+ $(this).attr("name").replace("isHexbin","cfgKeywords")
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$.validator.messages.hexCheck+"</label>");
flag = false;
}
}
}
});
//校验tagInput的空和十六进制
flag=validateTagInputKeyword();
var flag1=validateInvisibleCharTag();
if(flag){
flag=flag1;
@@ -237,7 +214,7 @@
</div>
</div>
<!-- dolog begin-->
<div class="row">
<div class="row interceptDoLog hidden">
<div class="col-md-6">
<div class="form-group">
<label class="control-label col-md-3"><spring:message code="do_log" /></label>

View File

@@ -338,7 +338,7 @@
<th><spring:message code="replace_content"/></th>
</c:if>
<th class="sort-column a.action"><spring:message code="block_type"/></th>
<th><spring:message code="do_log"/></th>
<%-- <th><spring:message code="do_log"/></th> --%>
<th><spring:message code="whether_area_block"/></th>
<th><spring:message code="letter"/></th>
<th><spring:message code="classification"/></th>
@@ -408,13 +408,13 @@
</c:if>
</c:forEach>
</td>
<td>
<%-- <td>
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
<c:if test="${dict.itemCode eq indexCfg.doLog }">
<spring:message code="${dict.itemValue }"/>
</c:if>
</c:forEach>
</td>
</td> --%>
<td>
<c:if test="${indexCfg.isAreaEffective==0}"><spring:message code="all"/></c:if>
<c:if test="${indexCfg.isAreaEffective==1}">