contip、conturl、picip、picurl功能提交

areainfo界面区域和运营商修改为二选一的
This commit is contained in:
duandongmei
2018-06-01 18:13:07 +08:00
parent 169c559a53
commit e80f2e2967
22 changed files with 2241 additions and 204 deletions

View File

@@ -311,6 +311,18 @@ jQuery.validator.addMethod("portCheck",function(value, element) {
}
}
});
jQuery.validator.addMethod("chooseAreaOrIsp",function(value, element) {
var isp="";
if($(element).is(":visible")){
isp=$(element).closest(".row").find("select[name$='.isp']").val()
}
if(value =='' && isp==""){
$.validator.messages.chooseAreaOrIsp=$.validator.messages.chooseAreaOrIsp
return false;
}
return true;
});
//ip v4转数字
var ipToNumber=function (ip){
var num =0;

View File

@@ -32,6 +32,7 @@
portCheck:"Please enter a correct port",
notStartZero:"Please enter a valid Integer",
portRange:"Please enter a valid Integer",
portMaskRange:"Port must be a valid Integer and mask must between 0 and 65535.The correct pattern is \"port/mask\"."
portMaskRange:"Port must be a valid Integer and mask must between 0 and 65535.The correct pattern is \"port/mask\".",
chooseAreaOrIsp:"The region and the oprater must choose one"
});
}(jQuery));

View File

@@ -30,6 +30,7 @@
ipRange1:"start IP should smaller than end IP",
portCheck: " Пожалуйста, введите  правильный  порт.",
portRange:"Please enter a valid Integer",
portMaskRange:"Port must be a valid Integer and mask must between 0 and 65535.The correct pattern is \"port/mask\"."
portMaskRange:"Port must be a valid Integer and mask must between 0 and 65535.The correct pattern is \"port/mask\".",
chooseAreaOrIsp:"The region and the oprater must choose one"
});
}(jQuery));

View File

@@ -34,5 +34,6 @@
ipRange1:"起始IP值应小于结束IP值",
portRange:"端口必须为整数非0数字不能以0开头",
portMaskRange:"端口必须为整数掩码范围0-65535非0数字不能以0开头。格式为\"端口/掩码\"",
chooseAreaOrIsp:"区域和运营商必选一个"
});
}(jQuery));