注释掉特定协议中的序号动态变更

This commit is contained in:
wangxin
2018-09-10 14:12:48 +08:00
parent 3af86b92de
commit b7e69bbf90

View File

@@ -96,7 +96,7 @@
}
});
$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
$("input[name='specServiceCode']").attr("range","[300001,310000]");
//$("input[name='specServiceCode']").attr("range","[300001,310000]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="app_name"/>:');
$(".protocol_desc").html('<spring:message code="app_desc"/>:');
}else{
@@ -119,17 +119,17 @@
});
if($("[name='cfgType']").val()==1){
$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
$("input[name='specServiceCode']").attr("range","[300001,310000]");
//$("input[name='specServiceCode']").attr("range","[300001,310000]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="app_name"/>:');
$(".protocol_desc").html('<spring:message code="app_desc"/>:');
}else if($("[name='cfgType']").val()==2){
$(".protocol_code").html('<font color="red">*</font><spring:message code="tunnel_code"/>:');
$("input[name='specServiceCode']").attr("range","[0,2147483647]");
//$("input[name='specServiceCode']").attr("range","[0,2147483647]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="tunnel_name"/>:');
$(".protocol_desc").html('<spring:message code="tunnel_desc"/>:');
}else{
$(".protocol_code").html('<font color="red">*</font><spring:message code="protocol_code"/>:');
$("input[name='specServiceCode']").attr("range","[10001,20000]");
//$("input[name='specServiceCode']").attr("range","[10001,20000]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="protocol_name"/>:');
$(".protocol_desc").html('<spring:message code="protocol_desc"/>:');
}
@@ -163,17 +163,17 @@
});
if(cfgType==1){
$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
$("input[name='specServiceCode']").attr("range","[300001,310000]");
//$("input[name='specServiceCode']").attr("range","[300001,310000]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="app_name"/>:');
$(".protocol_desc").html('<spring:message code="app_desc"/>:');
}else if(cfgType==2){
$(".protocol_code").html('<font color="red">*</font><spring:message code="tunnel_code"/>:');
$("input[name='specServiceCode']").attr("range","[0,2147483647]");
//$("input[name='specServiceCode']").attr("range","[0,2147483647]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="tunnel_name"/>:');
$(".protocol_desc").html('<spring:message code="tunnel_desc"/>:');
}else{
$(".protocol_code").html('<font color="red">*</font><spring:message code="protocol_code"/>:');
$("input[name='specServiceCode']").attr("range","[10001,20000]");
//$("input[name='specServiceCode']").attr("range","[10001,20000]");
$(".protocol_name").html('<font color="red">*</font><spring:message code="protocol_name"/>:');
$(".protocol_desc").html('<spring:message code="protocol_desc"/>:');
}