YSP各样例配置-level置信度

This commit is contained in:
leijun
2018-09-07 10:32:47 +08:00
parent d7ecb98294
commit 84a97cde3b
5 changed files with 79 additions and 50 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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('');
}
}
</script>
</head>
<body>
@@ -128,13 +142,30 @@ $(function(){
</div>
</div>
</div>
<div class="col-md-6 hidden">
<div class="form-group ">
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="harm_level"/></label>
<div class="col-md-6">
<div class="form-group">
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="action"/></label>
<div class="col-md-6">
<input class="form-control required" range="[0,100]" type="text" name="level" value="0">
<c:forEach items="${serviceList}" var="service"
varStatus="satus">
<label class="radio-inline"> <c:if
test="${_cfg.functionId eq service.functionId}">
<input type="radio" name="action"
serviceId="${service.serviceId }"
protocolId="${service.protocolId }"
value="${service.action }" class="required action"
<c:if test="${_cfg.action==service.action || (_cfg.action==null && satus.index==0)}">checked</c:if>>
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${dict.itemCode eq service.action }">
<spring:message code="${dict.itemValue }"/>
</c:if>
</c:forEach>
</c:if>
</label>
</c:forEach>
</div>
<div for="level"></div>
<div for="action"></div>
</div>
</div>
@@ -184,29 +215,13 @@ $(function(){
<div for="sampleFileInfo"></div>
</div>
</div> --%>
<div class="col-md-6">
<div class="form-group">
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="action"/></label>
<div class="col-md-6 leveL" >
<div class="form-group ">
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="harm_level"/></label>
<div class="col-md-6">
<c:forEach items="${serviceList}" var="service"
varStatus="satus">
<label class="radio-inline"> <c:if
test="${_cfg.functionId eq service.functionId}">
<input type="radio" name="action"
serviceId="${service.serviceId }"
protocolId="${service.protocolId }"
value="${service.action }" class="required action"
<c:if test="${_cfg.action==service.action || (_cfg.action==null && satus.index==0)}">checked</c:if>>
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${dict.itemCode eq service.action }">
<spring:message code="${dict.itemValue }"/>
</c:if>
</c:forEach>
</c:if>
</label>
</c:forEach>
<input class="form-control required number" range="[0,100]" type="text" name="level" value="">
</div>
<div for="action"></div>
<div for="level"></div>
</div>
</div>
</div>

View File

@@ -275,6 +275,7 @@
<th><spring:message code="src_file"/></th>
<th><spring:message code="sample_file"/></th>
<th><spring:message code="block_type"/></th>
<th><spring:message code="harm_level"/></th>
<th><spring:message code="letter"/></th>
<th><spring:message code="classification"/></th>
<th><spring:message code="attribute"/></th>
@@ -316,6 +317,7 @@
</c:if>
</c:forEach>
</td>
<td>${cfg.level }</td>
<td>${cfg.requestName }</td>
<td>
<c:set var="classify"></c:set>
@@ -396,14 +398,12 @@
<td><fmt:formatDate value="${cfg.editTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
<td>${cfg.auditorName }</td>
<td><fmt:formatDate value="${cfg.auditTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
</tr>
</c:forEach>
</tbody>
</table>
<div class="page">${page}</div>
</div>
</div>
</div>
</div>

View File

@@ -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('');
}
}
</script>
</head>
<body>
@@ -103,26 +116,6 @@ $(function(){
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group ">
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="harm_level"/></label>
<div class="col-md-6">
<input class="form-control required digest" range="[0,100]" type="text" name="level" value="${_cfg.level }">
</div>
<div for="level"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group ">
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="sample_sign"/></label>
<div class="col-md-6">
<input class="form-control required" type="text" name="description" value="${_cfg.description }">
</div>
<div for="description"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="action"/></label>
@@ -149,6 +142,27 @@ $(function(){
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group ">
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="sample_sign"/></label>
<div class="col-md-6">
<input class="form-control required" type="text" name="description" value="${_cfg.description }">
</div>
<div for="description"></div>
</div>
</div>
<div class="col-md-6 leveL">
<div class="form-group ">
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="harm_level"/></label>
<div class="col-md-6">
<input class="form-control required digest number" range="[0,100]" type="text" name="level" value="${_cfg.level }">
</div>
<div for="level"></div>
</div>
</div>
</div>
<div class="row doLog">
<div class="col-md-6">
<div class="form-group">