diff --git a/src/main/webapp/WEB-INF/tags/sys/delRow.tag b/src/main/webapp/WEB-INF/tags/sys/delRow.tag index 91b4c3a47..db67b470f 100644 --- a/src/main/webapp/WEB-INF/tags/sys/delRow.tag +++ b/src/main/webapp/WEB-INF/tags/sys/delRow.tag @@ -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]+"
"; - } - if(keyValue !=''){ - top.$.jBox.info(keyValue+"",""); - 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]+"
"; + } + if(keyValue !=''){ + top.$.jBox.info(keyValue+"",""); + 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; } //验证是否可删除 diff --git a/src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/form.jsp b/src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/form.jsp index 2274bbda1..2bdb4e3ed 100644 --- a/src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/form.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/form.jsp @@ -344,9 +344,9 @@ function privateFileValidate(){
- +
- +