From 84a97cde3b92038173fdb9cd756f48e05e6bc853 Mon Sep 17 00:00:00 2001 From: leijun Date: Fri, 7 Sep 2018 10:32:47 +0800 Subject: [PATCH] =?UTF-8?q?YSP=E5=90=84=E6=A0=B7=E4=BE=8B=E9=85=8D?= =?UTF-8?q?=E7=BD=AE-level=E7=BD=AE=E4=BF=A1=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/messages/message_en.properties | 2 +- .../messages/message_zh_CN.properties | 2 +- .../WEB-INF/views/cfg/av/fileSampleForm.jsp | 67 ++++++++++++------- .../WEB-INF/views/cfg/av/fileSampleList.jsp | 4 +- .../WEB-INF/views/cfg/av/signSampleForm.jsp | 54 +++++++++------ 5 files changed, 79 insertions(+), 50 deletions(-) diff --git a/src/main/resources/messages/message_en.properties b/src/main/resources/messages/message_en.properties index 9da9e5360..685a5af8a 100644 --- a/src/main/resources/messages/message_en.properties +++ b/src/main/resources/messages/message_en.properties @@ -525,7 +525,7 @@ av_sample_video_porn_control=Video Scene Detection av_sample_control=Sample configure_statistics_info=Configuration Service And Status Statistics letter_statistics_info=Letter And Configuration Service Statistics -harm_level=Degree of harm +harm_level=Confidence Degree src_file=Source File file=File select_file=Please Select Upload File diff --git a/src/main/resources/messages/message_zh_CN.properties b/src/main/resources/messages/message_zh_CN.properties index 93ec979b5..6697c87bb 100644 --- a/src/main/resources/messages/message_zh_CN.properties +++ b/src/main/resources/messages/message_zh_CN.properties @@ -524,7 +524,7 @@ av_sample_video_porn_control=\u89C6\u9891\u573A\u666F av_sample_control=\u97F3\u89C6\u9891\u6837\u4F8B configure_statistics_info=\u914D\u7F6E\u4E1A\u52A1\u548C\u72B6\u6001\u7EDF\u8BA1 letter_statistics_info=\u6765\u51FD\u548C\u4E1A\u52A1\u914D\u7F6E\u7EDF\u8BA1 -harm_level=\u5371\u5BB3\u7A0B\u5EA6 +harm_level=\u7F6E\u4FE1\u5EA6 src_file=\u6E90\u6587\u4EF6 file=\u6587\u4EF6 select_file=\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6 diff --git a/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp b/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp index 025447f74..2bd43db5b 100644 --- a/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp @@ -52,8 +52,11 @@ $(function(){ $("#areaIp").addClass("hidden"); } }); + + hiddenlevel(); $(".action").on("change",function(){ $("#serviceId").val($(this).attr("serviceId")); + hiddenlevel(); }); $("#serviceId").val($(".action:checked").attr("serviceId")); $("#cfgFrom").validate({ @@ -80,6 +83,17 @@ $(function(){ }, }); }); + +function hiddenlevel(){ + var action=$("input[name='action']:checked").val(); + if(action==16){ + $(".leveL").addClass("hidden"); + $("input[name='level']").val(0); + }else { + $(".leveL").removeClass("hidden"); + $("input[name='level']").val(''); + } +} @@ -128,13 +142,30 @@ $(function(){ - --%> -
-
- +
+
+
- - - +
-
+
diff --git a/src/main/webapp/WEB-INF/views/cfg/av/fileSampleList.jsp b/src/main/webapp/WEB-INF/views/cfg/av/fileSampleList.jsp index 654c258b0..21195226f 100644 --- a/src/main/webapp/WEB-INF/views/cfg/av/fileSampleList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/av/fileSampleList.jsp @@ -275,6 +275,7 @@ + @@ -316,6 +317,7 @@ + ${cfg.level } ${cfg.requestName } @@ -396,14 +398,12 @@ ${cfg.auditorName } -
${page}
- diff --git a/src/main/webapp/WEB-INF/views/cfg/av/signSampleForm.jsp b/src/main/webapp/WEB-INF/views/cfg/av/signSampleForm.jsp index c2113764e..47d8110d9 100644 --- a/src/main/webapp/WEB-INF/views/cfg/av/signSampleForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/av/signSampleForm.jsp @@ -42,8 +42,10 @@ $(function(){ $("#areaIp").addClass("hidden"); } }); + hiddenlevel(); $(".action").on("change",function(){ $("#serviceId").val($(this).attr("serviceId")); + hiddenlevel(); }); $("#serviceId").val($(".action:checked").attr("serviceId")); $("#cfgFrom").validate({ @@ -57,6 +59,17 @@ $(function(){ errorContainer: "#messageBox", }); }); + +function hiddenlevel(){ + var action=$("input[name='action']:checked").val(); + if(action==16){ + $(".leveL").addClass("hidden"); + $("input[name='level']").val(0); + }else { + $(".leveL").removeClass("hidden"); + $("input[name='level']").val(''); + } +} @@ -103,26 +116,6 @@ $(function(){ -
-
- -
- -
-
-
-
- -
-
-
- -
- -
-
-
-
@@ -149,6 +142,27 @@ $(function(){
+
+
+
+ +
+ +
+
+
+
+
+
+ +
+ +
+
+
+
+ +