证书的crl取消必填;

asn校验增加非空判断
This commit is contained in:
duandongmei
2019-01-19 15:59:15 +06:00
parent dd31d432e1
commit ebcb89ef13
2 changed files with 28 additions and 23 deletions

View File

@@ -429,32 +429,37 @@ function cancelPassOpt(url){
var compileIdStr="";
checkboxes.each(function(){
if(true == $(this).is(':checked')){
compileIdStr +=$(this).parent().find("span[cfgid='"+$(this).attr("id")+"']").attr("compileId")+",";
var compileId=$(this).parent().find("span[cfgid='"+$(this).attr("id")+"']").attr("compileId");
if(compileId != null && compileId !='' && compileId != 'undefined'){
compileIdStr +=compileId+",";
}
}
});
//根据compileId查询此配置下是否有配置已经删除
$.ajax({
type:'post',
url:'${ctx}/basics/asnGroup/checkAsnRegionIsDeleted',
data:{"compileIds":compileIdStr},
async:false,
success:function(data,textStatus){//处理返回结果
if(textStatus == 'success'){
var keyValue="";
for(var key in data){ //key data[key]
console.log(key + "==" + data[key]);
keyValue+=data[key]+"<br>";
}
if(keyValue !=''){
top.$.jBox.info(keyValue+"<spring:message code='reedit'/>","<spring:message code='info'/>");
top.$('.jbox-body .jbox-icon').css('top','55px');
flag= true;
if(compileIdStr != null && compileIdStr !='' && compileIdStr != 'undefined'){
$.ajax({
type:'post',
url:'${ctx}/basics/asnGroup/checkAsnRegionIsDeleted',
data:{"compileIds":compileIdStr},
async:false,
success:function(data,textStatus){//处理返回结果
if(textStatus == 'success'){
var keyValue="";
for(var key in data){ //key data[key]
console.log(key + "==" + data[key]);
keyValue+=data[key]+"<br>";
}
if(keyValue !=''){
top.$.jBox.info(keyValue+"<spring:message code='reedit'/>","<spring:message code='info'/>");
top.$('.jbox-body .jbox-icon').css('top','55px');
flag= true;
}
}
/* window.location = url+"&ids="+ids+"&compileIds="+compileIds; */
}
/* window.location = url+"&ids="+ids+"&compileIds="+compileIds; */
}
});
});
}
return flag;
}
//验证是否可删除

View File

@@ -344,9 +344,9 @@ function privateFileValidate(){
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="CRL"/></label>
<label class="control-label col-md-3"><spring:message code="CRL"/></label>
<div class="col-md-6">
<input class="form-control required crlCheck" type="text" name="crl" value="${_cfg.crl}">
<input class="form-control crlCheck" type="text" name="crl" value="${_cfg.crl}">
</div>
<div for="crl"></div>
</div>