obj-group-list隐藏doBlackList,拦截行为的doLog值设置为2

This commit is contained in:
wangxin
2019-06-15 11:50:13 +08:00
parent ef16dddf34
commit 10d153c40f

View File

@@ -39,6 +39,7 @@ $(function(){
$(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId"));
$("#protocolId").val($(this).attr("protocolId"));
var action=$("input[name='action']:checked").val();
switchAction(action);
//处理页面协议
@@ -62,6 +63,13 @@ $(function(){
$(".domainGroup").removeClass("hidden").removeClass("disabled");
//处理do_log
$(".doLog").addClass("hidden");
$("[name='doLog']").each(function () {
if($(this).val()==2){
$(this).prop("checked",true);
}else{
$(this).removeAttr("checked");
}
})
}else{
$(".domainGroup").addClass("hidden").addClass("disabled");
//处理do_log
@@ -85,7 +93,13 @@ $(function(){
$(".domainGroup").removeClass("hidden").removeClass("disabled");
//处理do_log
$(".doLog").addClass("hidden");
$("[name='doLog']").find("[value=2]").prop("checked",true);
$("[name='doLog']").each(function () {
if($(this).val()==2){
$(this).prop("checked",true);
}else{
$(this).removeAttr("checked");
}
})
}else if("https"==$(this).val()){
$(".urlGroup").removeClass("hidden").removeClass("disabled");
$(".subscribeIdGroup").removeClass("hidden").removeClass("disabled");
@@ -282,7 +296,7 @@ var delContent = function(contentClassName, addBtnClassName) {
</c:forEach>
</div>
</div>
<div class="col-md-6 doBlackList">
<div class="col-md-6 hidden">
<div class="form-group">
<label class="control-label col-md-3"><spring:message code="do_blacklist" /></label>
<c:forEach items="${fns:getDictList('DO_BLACKLIST') }" var="dict">