(1)IP类配置表单初始化时设置协议ID

(2)IP白名单IP/端口默认值初始化方法修改
This commit is contained in:
wangxin
2018-05-25 16:01:01 +08:00
parent 1d44d680e7
commit dfb5f8499f
3 changed files with 18 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
<title><spring:message code="${cfgName}"></spring:message></title>
<script type="text/javascript">
$(function(){
switchIpType($("select[name$='ipType']"));
switchIpInfo($("select[name$='ipType']"),"ipType");
$("input[name='isAreaEffective']").on('change',function(){
var val=$(this).val();
if(val==1){
@@ -40,7 +40,13 @@ $(function(){
window.history.back();
});
$("select[name$='ipType']").on("change",function(){
switchIpType($(this));
switchIpInfo(this,"ipType");
});
$("select[name$='ipPattern']").on("change",function(){
switchIpInfo(this,"ipPattern");
});
$("select[name$='portPattern']").on("change",function(){
switchIpInfo(this,"portPattern");
});
$(".action").on("change",function(){
$("#serviceId").val($(this).attr("serviceId"));