1.修改视频场景增加监测封堵按钮2.增加patch调用接口更改配置状态方法
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$("input[type=checkbox]").bootstrapSwitch();
|
||||
/* $("input[type=checkbox]").bootstrapSwitch();
|
||||
$("input[type=checkbox]").each(function(){
|
||||
$(this).on("switchChange.bootstrapSwitch",function(event,state){
|
||||
if(state){
|
||||
@@ -14,7 +14,33 @@ $(function(){
|
||||
$(this).val(0);
|
||||
}
|
||||
})
|
||||
}); */
|
||||
if($("#oldAction").val()==1){
|
||||
$("#level").show();
|
||||
}else{
|
||||
$("input[name$='level']").val("");
|
||||
}
|
||||
$(".action").on("change",function(){
|
||||
$("#serviceId").val($(this).attr("serviceId"));
|
||||
if($(".action:checked").val()==1){
|
||||
$("#level").show();
|
||||
}else{
|
||||
$("#level").hide();
|
||||
}
|
||||
if($("#level").is(":hidden")){
|
||||
$("input[name$='level']").val("");
|
||||
}
|
||||
});
|
||||
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
||||
$("#save").click(function(){
|
||||
if($(".action:checked").attr("id")=="actionOff"){
|
||||
$("#isValid").val(0);
|
||||
}
|
||||
if($(".action:checked").attr("id")=="actionOn"){
|
||||
$("#isValid").val(1);
|
||||
}
|
||||
|
||||
})
|
||||
$("#cfgFrom").validate({
|
||||
errorPlacement: function(error,element){
|
||||
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
|
||||
@@ -33,11 +59,11 @@ $(function(){
|
||||
|
||||
<div class="page-content">
|
||||
<h3 class="page-title">
|
||||
<c:forEach items="${regionList}" var="region">
|
||||
<spring:message code="av_sample_video_porn_control"></spring:message>
|
||||
<%-- <c:forEach items="${regionList}" var="region">
|
||||
<c:if test="${_cfg.functionId eq region.functionId}">
|
||||
<spring:message code="${region.configRegionValue}"></spring:message>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach> --%>
|
||||
</h3>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@@ -47,9 +73,26 @@ $(function(){
|
||||
<i class="fa fa-gift"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body form">
|
||||
<div class="portlet-body form ">
|
||||
<sys:message content="${message}" />
|
||||
<!-- BEGIN FORM-->
|
||||
<div class="col-md-2">
|
||||
<form id="presetFrom" action="${ctx}/ntc/av/sample/auditAvSignSample" method="get" class="form-horizontal">
|
||||
<input type="hidden" name="functionId" value="${functionId }">
|
||||
<input type="hidden" name="preset" value="1">
|
||||
<div class="form-actions" style="background-color: #FFFFFF">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="row">
|
||||
<div class="col-md-offset-8 col-md-8">
|
||||
<button id="preset" type="submit" class="btn-danger"><spring:message code="preset"/></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<form id="cfgFrom" action="${ctx}/ntc/av/sample/auditAvSignSample" method="post" class="form-horizontal">
|
||||
<input type="hidden" name="functionId" value="${functionId }">
|
||||
<div class="form-body">
|
||||
@@ -58,18 +101,20 @@ $(function(){
|
||||
varStatus="status">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3">
|
||||
<%-- <label class="control-label col-md-3">
|
||||
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||
<c:if test="${dict.itemCode eq _cfg.action }">
|
||||
<spring:message code="${dict.itemValue }"/>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</label>
|
||||
</label> --%>
|
||||
<input type="hidden" name="cfgs[${status.index }].cfgId" value="${_cfg.cfgId }">
|
||||
<input type="hidden" name="cfgs[${status.index }].serviceId" value="${_cfg.serviceId }">
|
||||
<input type="hidden" id="serviceId" name="cfgs[${status.index }].serviceId" value="${_cfg.serviceId }">
|
||||
<input type="hidden" name="cfgs[${status.index }].compileId" value="${_cfg.compileId}">
|
||||
<input type="hidden" name="cfgs[${status.index }].isValidOld" value="${_cfg.isValid}">
|
||||
<div class="col-md-6">
|
||||
<input type="hidden" id="oldAction" name="cfgs[${status.index }].actionOld" value="${_cfg.action}">
|
||||
<input type="hidden" id="isValid" name="cfgs[${status.index }].isValid" value="${_cfg.isValid}">
|
||||
<%-- <div class="col-md-6">
|
||||
<div class="bootstrap-switch">
|
||||
<input type="checkbox" data-on="danger"
|
||||
data-off="primary"
|
||||
@@ -82,7 +127,41 @@ $(function(){
|
||||
</c:if>
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div> --%>
|
||||
<div class="col-md-6">
|
||||
<c:forEach items="${serviceList}" var="service"
|
||||
varStatus="satus">
|
||||
<label class="">
|
||||
<c:if test="${_cfg.functionId eq service.functionId}">
|
||||
<input id="actionOn" type="radio" name="action"
|
||||
serviceId="${service.serviceId }"
|
||||
isValid="${_cfg.isValid}"
|
||||
value="${service.action }" class="required action radio-inline radio-on"
|
||||
<c:if test="${(_cfg.action==service.action || (_cfg.action==null && satus.index==0))&&_cfg.isValid!=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 id="actionOff" serviceId="${_cfg.serviceId }"
|
||||
isValid="${_cfg.isValid}"
|
||||
type="radio" name="action" class="radio-inline action radio-off" value="0" <c:if test="${_cfg.isValid == 0}">checked</c:if>> <spring:message code="off"/>
|
||||
</div>
|
||||
<div for="action"></div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div id="level" class="form-group" hidden="hidden">
|
||||
<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 number" range="[0,100]" type="text" name="cfgs[${status.index }].level" value="${_cfg.level }">
|
||||
</div>
|
||||
</div>
|
||||
<div for="cfgs[${status.index }].level"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</c:forEach>
|
||||
|
||||
Reference in New Issue
Block a user