asn 作为域,已被策略引用并下发时,此asn不允许被删除

This commit is contained in:
段冬梅
2019-02-19 11:59:28 +08:00
parent 446c8884ad
commit 4f9a78e5d9
4 changed files with 15 additions and 10 deletions

View File

@@ -45,15 +45,20 @@
ids.push($(this).attr("id"));
asnIds.push($(this).attr("asnId"));
groupIds.push($(this).attr("asnGroup"));
/* if($(this).attr("isIssued")==1){
if($(this).attr("isUsed")==1){
canDel=false;
} */
}
}
});
if(str.substr(str.length-1)== ','){
ids = str.substr(0,str.length-1);
}
var tip='<spring:message code="can_not_delete_asn_group_with_audited_ip"/>';
var tip='<spring:message code="can_not_delete_issued_ans_group"/>';
if(!canDel){
$.jBox.tip(tip);
return false;
}
if(str.substr(str.length-1)== ','){
ids = str.substr(0,str.length-1);
}
tip='<spring:message code="can_not_delete_asn_group_with_audited_ip"/>';
if(asnIds.length>0){
$.ajax({
type:'post',
@@ -278,7 +283,7 @@
<tbody>
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
<tr>
<td><input type="checkbox" class="i-checks" id="${cfg.id}" asnId="${cfg.asnId}" isValid="${cfg.isValid}" asnGroup="${cfg.groupId}"></td>
<td><input type="checkbox" class="i-checks" id="${cfg.id}" asnId="${cfg.asnId}" isValid="${cfg.isValid}" isUsed="${cfg.isUsed}" asnGroup="${cfg.groupId}"></td>
<td>
<a href="javascript:;" data-original-title="${cfg.organization}"
class="tooltips" data-flag="false" data-html="true" data-placement="top">