From 7799bcd5bf60cccafe664ca993b1a8c77b68d1d9 Mon Sep 17 00:00:00 2001 From: wangxin Date: Thu, 20 Sep 2018 09:45:57 +0800 Subject: [PATCH] =?UTF-8?q?action=20=E4=B8=BA=E7=9B=91=E6=B5=8B=E6=97=B6?= =?UTF-8?q?=EF=BC=8Cdolog=20=E4=B8=8D=E8=AE=B0=E5=BD=95=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E9=9A=90=E8=97=8F=EF=BC=8C=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E9=80=89=E4=B8=AD=E4=BA=86=E4=B8=8D=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=97=A5=E5=BF=97=E9=80=89=E9=A1=B9=EF=BC=8C=E5=88=99?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E7=9A=84=E5=90=8C=E6=97=B6=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E7=BB=93=E6=9E=84=E5=8C=96=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E7=9A=84=E9=80=89=E9=A1=B9(interceptDoLog=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E5=85=A8=E9=83=A8=E6=97=A5=E5=BF=97)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/static/global/scripts/common.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/static/global/scripts/common.js b/src/main/webapp/static/global/scripts/common.js index c42153737..632b3e61b 100644 --- a/src/main/webapp/static/global/scripts/common.js +++ b/src/main/webapp/static/global/scripts/common.js @@ -840,7 +840,18 @@ var switchAction=function(action){ $("input[name=doLog][value=2]").prop("checked",true); $(".interceptDoLog").find("input[name=doLog][value=1]").prop("checked",true); } - + } + if(action == 1){//监测时隐藏doLog中不记录日志的选项 + if($("input[name=doLog][value=0]")){ + $("input[name=doLog][value=0]").parent(".radio-inline").addClass("hidden"); + if($("input[name=doLog][value=0]").is(":checked")){ + $("input[name=doLog][value=0]").removeAttr("checked"); + $("input[name=doLog][value=2]").prop("checked",true); + $(".interceptDoLog").find("input[name=doLog][value=1]").prop("checked",true); + } + } + }else{ + $("input[name=doLog][value=0]").parent(".radio-inline").removeClass("hidden"); } } //ipType、ipPattern、portPattern选项变化时调用此方法,添加默认值