(1)asn_ip_cfg增加四列 (2)新增asn_group_info表 (3)asn ip菜单移动到policy object下,新增审核审计菜单 (4)asn ip导入修改,适应新的需求放弃了使用AsnCache,直接从数据库查 (5)asn ip加入审核流程 (6)Packet IP选择asn时,改为选中一个组织,审核下发的配置为as号字符串域 (7)asn ip 新增业务新增function_service_dict字典,serviceId为400
57 lines
1.5 KiB
JavaScript
57 lines
1.5 KiB
JavaScript
$(function(){
|
|
var ids=[];
|
|
$(".appCode").each(function(){
|
|
if($(this).attr("id")&&$(this).attr("id")!=''){
|
|
ids.push($(this).attr("id"));
|
|
}
|
|
//ids.push($(this).attr("id"));
|
|
});
|
|
$(".behavCode").each(function(){
|
|
if($(this).attr("id")&&$(this).attr("id")!=''){
|
|
ids.push($(this).attr("id"));
|
|
}
|
|
});
|
|
if($(".appCode").length>0){
|
|
var pathName=window.document.location.pathname.substring(0,window.document.location.pathname.indexOf("/nis")+4);
|
|
$.ajax({
|
|
type:'post',
|
|
async:false,
|
|
url:pathName+'/app/ajaxAppName',
|
|
data:{"ids":ids.join(",")},
|
|
success:function(data){
|
|
if(data&&data.length==2){
|
|
var apps=data[0];
|
|
for(var ind in apps){
|
|
$("[class='appCode'][id='"+ind+"']").html(apps[ind]);
|
|
}
|
|
var behavs=data[1];
|
|
for(var ind in behavs){
|
|
$("[class='behavCode'][id='"+ind+"']").html(behavs[ind]);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
/*var asnNos=[];
|
|
$(".configGroup").each(function(){
|
|
if($(this).attr("asnNo")&&$(this).attr("asnNo")!=''){
|
|
asnNos.push($(this).attr("asnNo"));
|
|
}
|
|
});
|
|
if(asnNos.length>0){
|
|
var pathName=window.document.location.pathname.substring(0,window.document.location.pathname.indexOf("/nis")+4);
|
|
$.ajax({
|
|
type:'post',
|
|
async:false,
|
|
url:pathName+'/basics/asn/ajaxGroupName',
|
|
data:{"ids":asnNos.join(",")},
|
|
success:function(data){
|
|
if(data){
|
|
for(var ind in data){
|
|
$("[class='configGroup'][asnNo='"+ind+"']").html(data[ind]);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}*/
|
|
}); |