(1)IP类配置页面修改,支持多选的删除,审核,操作按钮上移

(2)修复验证方法ipCheck影响多个IP配置的bug
This commit is contained in:
wangxin
2018-04-11 13:45:04 +08:00
parent f94e377819
commit 76d190e78a
13 changed files with 773 additions and 174 deletions

View File

@@ -1,3 +1,13 @@
$(function(){
//全选及取消
$("#checkAll").change(function(){
if($("#checkAll").prop("checked")){
$("input.i-checks").prop("checked",true);
}else{
$("input.i-checks").prop("checked",false);
}
});
});
var switchIpType=function(obj){
var type=$(obj).val();
var row=$(obj).parents('.row');
@@ -64,6 +74,18 @@ var switchIpType=function(obj){
}else if($(dstIp).val()=="0.0.0.0"){
$(dstIp).val("::");
}
if(!$(srcPort).val()){
$(srcPort).val("0");
}
if(!$(dstPort).val()){
$(dstPort).val("0");
}
if(!$(srcPortMask).val()){
$(srcPortMask).val("65535");
}
if(!$(dstPortMask).val()){
$(dstPortMask).val("65535");
}
}
}
var areaControlInit=function(){