完善操控配置功能,修改配置更新界面属性位置
This commit is contained in:
@@ -95,14 +95,14 @@
|
||||
<c:if test="${cfg.functionId eq 215 }">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3">
|
||||
<spring:message code="action" />
|
||||
<spring:message code="method" />
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||
<c:if test="${dict.itemCode == 16 || dict.itemCode == 48 || dict.itemCode == 80 }">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="manipulatType" class="userRegion5" value="${dict.itemCode }" class="required"
|
||||
<c:if test="${dict.itemCode == 48}">checked</c:if>>
|
||||
<c:if test="${dict.itemCode == 16}">checked</c:if>>
|
||||
<spring:message code="${dict.itemValue }"/>
|
||||
</label>
|
||||
</c:if>
|
||||
|
||||
@@ -13,6 +13,41 @@
|
||||
<spring:message code="action_region" />
|
||||
<small></small>
|
||||
</h4>
|
||||
<%-- Method --%>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3">
|
||||
<spring:message code="method" />
|
||||
</label>
|
||||
<div class="col-md-8">
|
||||
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||
<c:if test="${dict.itemCode == 16 || dict.itemCode == 48 || dict.itemCode == 80 }">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="userRegion5" class="userRegion5" value="${dict.itemCode }" class="required"
|
||||
<c:if test="${_cfg.userRegion5 == dict.itemCode || (_cfg.userRegion5==null && dict.itemCode==16)}">checked</c:if>>
|
||||
<spring:message code="${dict.itemValue }"/>
|
||||
</label>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<%-- Hijack标识为85 --%>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="userRegion5" class="userRegion5" value="85" class="required"
|
||||
<c:if test="${_cfg.userRegion5 == 85}">checked</c:if>>
|
||||
<spring:message code="action_hijack"/>
|
||||
</label>
|
||||
<%-- Insert标识为90 --%>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="userRegion5" class="userRegion5" value="90" class="required"
|
||||
<c:if test="${_cfg.userRegion5 == 90}">checked</c:if>>
|
||||
<spring:message code="action_insert"/>
|
||||
</label>
|
||||
</div>
|
||||
<div for="userRegion5"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<c:if test="${_cfg.userRegion5 == 16 }">
|
||||
<div class="row blockInfoDiv" action_value="16">
|
||||
<div class="col-md-6">
|
||||
@@ -32,46 +67,69 @@
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label class="control-label col-md-3">
|
||||
<spring:message code="response_content" />
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<input id="" name="userRegion2" class="form-control" type="text" value="${_cfg.userRegion2 }" maxlength="1024">
|
||||
<div class="col-md-3">
|
||||
<select id="response1" class="selectpicker select2 input-small pull-right">
|
||||
<option value="responseContent"><spring:message code="response_content"></spring:message></option>
|
||||
<option value="responseFile"><spring:message code="response_file"></spring:message></option>
|
||||
</select>
|
||||
</div>
|
||||
<div for="userRegion2"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%-- <div class="row blockInfoDiv" action_value="16">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><font color="red">*</font>
|
||||
<spring:message code="profile_info" />
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<select id="" name="userRegion4" data-live-search="true" data-live-search-placeholder="search" class="selectpicker form-control required">
|
||||
<input id="responseContent" name="userRegion2" class="form-control" type="text" value="${_cfg.userRegion2 }" maxlength="1024">
|
||||
<select id="responseFile" name="userRegion3" data-live-search="true" data-live-search-placeholder="search" class="selectpicker form-control required profileSel">
|
||||
<option value=""><spring:message code="select"/></option>
|
||||
<c:forEach items="${allProxyFileStrategys}" var="file">
|
||||
<c:forEach items="${allResponseFiles}" var="file">
|
||||
<c:if test="${file.isValid!=0 and file.isAudit!=3}">
|
||||
<option action="${file.action }" value="${file.compileId}"
|
||||
<c:if test="${file.compileId eq _cfg.userRegion4 }">selected</c:if>>${file.fileDesc}</option>
|
||||
<option action="${file.action }" value="${file.compileId}"
|
||||
<c:if test="${file.compileId==_cfg.userRegion3}">selected</c:if>>${file.fileDesc}</option>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
<div for="userRegion4"></div>
|
||||
<div for="userRegion2"></div>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
//页面加载时触发初始化操作
|
||||
var file = $("#responseFile").val();
|
||||
|
||||
if(file){
|
||||
$("#responseContent").hide();//隐藏输入框
|
||||
$("#response1").val("responseFile");
|
||||
$("#responseFile").selectpicker("show");//隐藏选择框
|
||||
}else{
|
||||
$("#responseFile").selectpicker("hide");//隐藏选择框
|
||||
$("#response1").val("responseContent");
|
||||
$("#responseContent").show();//隐藏输入框
|
||||
}
|
||||
|
||||
$("#response1").on("change",function(){
|
||||
var value = $(this).val();
|
||||
// 清空
|
||||
$("#responseContent").val("");
|
||||
$("#responseFile").selectpicker("val","");
|
||||
if("responseContent" == value){
|
||||
$("#responseContent").show();//显示输入框
|
||||
$("#responseFile").selectpicker("hide");//隐藏选择框
|
||||
}else{
|
||||
$("#responseContent").hide();//隐藏输入框
|
||||
$("#responseFile").selectpicker("show");//显示选择框
|
||||
getFileInfo("responseFile",16);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div> --%>
|
||||
<div class="row profileSelDiv" action_value="16">
|
||||
</div>
|
||||
|
||||
<div class="row profileSelDiv hidden">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><font color="red">*</font>
|
||||
<spring:message code="profile_info" />
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<select id="profileSelId" name="userRegion4" class="selectpicker show-tick form-control required">
|
||||
|
||||
<select id="profileSelId" name="userRegion4" class="selectpicker show-tick form-control required profileSel">
|
||||
<option value=""><spring:message code="select"/></option>
|
||||
</select>
|
||||
</div>
|
||||
<div for="userRegion4"></div>
|
||||
@@ -184,44 +242,62 @@
|
||||
</div>
|
||||
<div class="col-md-6 blockInfoDiv" action_value="16">
|
||||
<div class="form-group ">
|
||||
<label class="control-label col-md-3">
|
||||
<spring:message code="response_content" />
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<input id="responseContentA" name="userRegion2" class="form-control" type="text" maxlength="1024">
|
||||
</div>
|
||||
<div for="userRegion2"></div>
|
||||
</div>
|
||||
</div>
|
||||
<%-- <div class="row blockInfoDiv" action_value="16">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><font color="red">*</font>
|
||||
<spring:message code="profile_info" />
|
||||
</label>
|
||||
<div class="col-md-3">
|
||||
<select id="response2" class="selectpicker select2 input-small pull-right">
|
||||
<option value="blockContent"><spring:message code="response_content"></spring:message></option>
|
||||
<option value="blockFile"><spring:message code="response_file"></spring:message></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<select id="" name="userRegion4" data-live-search="true" data-live-search-placeholder="search" class="selectpicker form-control required">
|
||||
<input id="blockContent" name="userRegion2" class="form-control" type="text" maxlength="1024">
|
||||
<select id="blockFile" name="userRegion3" data-live-search="true" data-live-search-placeholder="search" class="selectpicker form-control required profileSel">
|
||||
<option value=""><spring:message code="select"/></option>
|
||||
<c:forEach items="${allProxyFileStrategys}" var="file">
|
||||
<c:if test="${file.isValid!=0 and file.isAudit!=3}">
|
||||
<option action="${file.action }" value="${file.compileId}">${file.fileDesc}</option>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
<div for="userRegion4"></div>
|
||||
</div>
|
||||
<div for="userRegion2"></div>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
//页面加载时触发初始化操作
|
||||
var file = $("#blockFile").val();
|
||||
if(file){
|
||||
$("#blockContent").hide();//隐藏输入框
|
||||
$("#response2").val("blockFile");
|
||||
$("#blockFile").selectpicker("show");//隐藏选择框
|
||||
}else{
|
||||
$("#blockFile").selectpicker("hide");//隐藏选择框
|
||||
$("#response2").val("blockContent");
|
||||
$("#blockContent").show();//隐藏输入框
|
||||
}
|
||||
|
||||
$("#response2").on("change",function(){
|
||||
var value = $(this).val();
|
||||
// 清空
|
||||
$("#blockContent").val("");
|
||||
$("#blockFile").selectpicker("val","");
|
||||
if("blockContent" == value){
|
||||
$("#blockContent").show();//显示输入框
|
||||
$("#blockFile").selectpicker("hide");//隐藏选择框
|
||||
}else{
|
||||
$("#blockContent").hide();//隐藏输入框
|
||||
$("#blockFile").selectpicker("show");//显示选择框
|
||||
getFileInfo("blockFile",16);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div> --%>
|
||||
<div class="row profileSelDiv" action_value="16">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row profileSelDiv hidden">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><font color="red">*</font>
|
||||
<spring:message code="profile_info" />
|
||||
</label>
|
||||
<div class="col-md-6">
|
||||
<select id="profileSelId" name="userRegion4" class="selectpicker show-tick form-control required">
|
||||
|
||||
<select id="profileSelId" name="userRegion4" class="selectpicker show-tick form-control required profileSel">
|
||||
<option value=""><spring:message code="select"/></option>
|
||||
</select>
|
||||
</div>
|
||||
<div for="userRegion4"></div>
|
||||
|
||||
@@ -185,13 +185,23 @@
|
||||
}
|
||||
if(flag){
|
||||
$(".blockInfoDiv").addClass("hidden");
|
||||
$(".profileSelDiv").removeClass("hidden");
|
||||
}else{
|
||||
$(".profileSelDiv").addClass("hidden");
|
||||
}
|
||||
});
|
||||
|
||||
// Get Policy Profile Info
|
||||
$(".actionParam").find(".profileSelDiv").each(function(){
|
||||
if(!$(this).hasClass("hidden")){
|
||||
var source = $(this).attr("source");
|
||||
if(!$(".profileSelDiv").hasClass("hidden")){
|
||||
getFileInfo("profileSelId",$(".profileSelDiv").attr("source"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var getFileInfo = function(selectId,source){
|
||||
$(".actionParam").find("#"+selectId).each(function(){
|
||||
//if(!$(this).hasClass("hidden")){
|
||||
//var source = $(this).attr("source");
|
||||
var pathName = window.document.location.pathname.substring(0,window.document.location.pathname.lastIndexOf("/nis")+4);
|
||||
$.ajax({
|
||||
type:'get',
|
||||
@@ -199,25 +209,38 @@
|
||||
dataType:'json',
|
||||
success:function(data){
|
||||
if(data != null){
|
||||
$("#profileSelId").empty();
|
||||
//$("#"+selectId).empty();
|
||||
$("#"+selectId).find("option").each(function(){
|
||||
if($(this).val() != "" && $(this).val() != null){
|
||||
$(this).remove();
|
||||
}
|
||||
});
|
||||
|
||||
var falseAction = $(".userRegion5:checked").val();
|
||||
$.each(data, function(i, n){
|
||||
if("${_cfg.userRegion4}" == data[i].compileId && "${_cfg.userRegion5}" == falseAction){ // 修改时选中
|
||||
var option = new Option(data[i].cfgDesc, data[i].compileId, null, true);
|
||||
if(source == 16){
|
||||
if("${_cfg.userRegion3}" == data[i].compileId && "${_cfg.userRegion5}" == falseAction){ // 修改时选中
|
||||
var option = new Option(data[i].fileDesc, data[i].compileId, null, true);
|
||||
}else{
|
||||
var option = new Option(data[i].fileDesc, data[i].compileId);
|
||||
}
|
||||
}else{
|
||||
var option = new Option(data[i].cfgDesc, data[i].compileId);
|
||||
if("${_cfg.userRegion4}" == data[i].compileId && "${_cfg.userRegion5}" == falseAction){ // 修改时选中
|
||||
var option = new Option(data[i].cfgDesc, data[i].compileId, null, true);
|
||||
}else{
|
||||
var option = new Option(data[i].cfgDesc, data[i].compileId);
|
||||
}
|
||||
}
|
||||
|
||||
$("#profileSelId")[0].options.add(option);
|
||||
$("#"+selectId)[0].options.add(option);
|
||||
});
|
||||
$("#profileSelId").selectpicker("refresh");
|
||||
$("#"+selectId).selectpicker("refresh");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
//}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//业务窗口打开
|
||||
@@ -278,7 +301,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 hidden">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><spring:message
|
||||
code="action" /></label>
|
||||
@@ -297,7 +320,7 @@
|
||||
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||
<c:if test="${dict.itemCode eq service.action }">
|
||||
<c:set var="action" value="${dict.itemCode }"></c:set>
|
||||
<spring:message code="${dict.itemValue }"/>
|
||||
<spring:message code="action_manipulate"/>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
@@ -307,7 +330,7 @@
|
||||
<div for="action"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<%-- <div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3">
|
||||
<spring:message code="action" />
|
||||
@@ -322,13 +345,13 @@
|
||||
</label>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<%-- Hijack标识为85 --%>
|
||||
Hijack标识为85
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="userRegion5" class="userRegion5" value="85" class="required"
|
||||
<c:if test="${_cfg.userRegion5 == 85}">checked</c:if>>
|
||||
<spring:message code="action_hijack"/>
|
||||
</label>
|
||||
<%-- Insert标识为90 --%>
|
||||
Insert标识为90
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="userRegion5" class="userRegion5" value="90" class="required"
|
||||
<c:if test="${_cfg.userRegion5 == 90}">checked</c:if>>
|
||||
@@ -337,7 +360,7 @@
|
||||
</div>
|
||||
<div for="userRegion5"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div> --%>
|
||||
|
||||
</div>
|
||||
<c:if test="${empty _cfg.cfgId }">
|
||||
|
||||
@@ -197,7 +197,7 @@
|
||||
<form:option value="httpResBody.cfgKeywords"><spring:message code="http_res_body_keywords"></spring:message></form:option>
|
||||
</c:if>
|
||||
</c:if>
|
||||
<form:option value="action"><spring:message code="block_type"></spring:message></form:option>
|
||||
<form:option value="action"><spring:message code="method"></spring:message></form:option>
|
||||
<form:option value="isValid"><spring:message code="valid_identifier"></spring:message></form:option>
|
||||
</form:select>
|
||||
</div>
|
||||
@@ -396,12 +396,14 @@
|
||||
<th column="config_describe" class="sort-column a.cfg_desc cfgDesc"><spring:message code="config_describe"/></th>
|
||||
<th column="block_type" class="sort-column a.action"><spring:message code="block_type"/></th>
|
||||
|
||||
<th><spring:message code="method"/></th>
|
||||
<th><spring:message code="response_code"/></th>
|
||||
<th><spring:message code="response_content"/></th>
|
||||
<th><spring:message code="redirect_url"/></th>
|
||||
<th><spring:message code="replace_zone"/></th>
|
||||
<th><spring:message code="replaced_content"/></th>
|
||||
<th><spring:message code="replace_content"/></th>
|
||||
<th><spring:message code="profile_info"/></th>
|
||||
|
||||
<th column="is_audit" ><spring:message code="is_audit"/></th>
|
||||
<th column="valid_identifier" class="sort-column a.is_valid"><spring:message code="valid_identifier"/></th>
|
||||
@@ -430,6 +432,8 @@
|
||||
</td>
|
||||
<td>${indexCfg.compileId }</td>
|
||||
<td>${indexCfg.cfgDesc }</td>
|
||||
<td><spring:message code="action_manipulate"/></td>
|
||||
|
||||
<td>
|
||||
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||
<c:if test="${dict.itemCode eq indexCfg.userRegion5 }">
|
||||
@@ -443,8 +447,6 @@
|
||||
<spring:message code="action_insert"/>
|
||||
</c:if>
|
||||
</td>
|
||||
|
||||
|
||||
<c:if test="${indexCfg.userRegion5 == 16}">
|
||||
<td>
|
||||
<c:forEach items="${fns:getDictList('RESPONSE_CODE') }" var="dict1">
|
||||
@@ -456,18 +458,19 @@
|
||||
</td>
|
||||
<td <c:if test="${not empty indexCfg.userRegion2 }"> title="${indexCfg.userRegion2 }"</c:if>"><!-- 阻断 响应内容 -->
|
||||
<c:if test="${not empty indexCfg.userRegion2 }">${fns:abbr(indexCfg.userRegion2,20)}</c:if>
|
||||
<%-- <c:if test="${not empty indexCfg.userRegion4 }">
|
||||
<c:forEach items="${allProxyFileStrategys}" var="file">
|
||||
<c:if test="${not empty indexCfg.userRegion3 }">
|
||||
<c:forEach items="${allResponseFiles}" var="file">
|
||||
<c:if test="${file.compileId eq indexCfg.userRegion3}">
|
||||
<a href="${file.url }" target="_blank">${file.fileDesc }</a>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:if> --%>
|
||||
</c:if>
|
||||
</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</c:if>
|
||||
<c:if test="${indexCfg.userRegion5 == 48}">
|
||||
<td>
|
||||
@@ -492,6 +495,7 @@
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</c:if>
|
||||
|
||||
<c:if test="${indexCfg.userRegion5 == 80}">
|
||||
@@ -507,10 +511,30 @@
|
||||
</td>
|
||||
<td title="${indexCfg.userRegion2 }">${fns:abbr(indexCfg.userRegion2,20)}</td>
|
||||
<td title="${indexCfg.userRegion3 }">${fns:abbr(indexCfg.userRegion3,20)}</td>
|
||||
<td></td>
|
||||
</c:if>
|
||||
|
||||
<c:if test="${indexCfg.userRegion5 != 16 && indexCfg.userRegion5 != 48 && indexCfg.userRegion5 != 80}">
|
||||
<td></td><td></td><td></td><td></td><td></td><td></td>
|
||||
<c:if test="${indexCfg.userRegion5 == 85 || indexCfg.userRegion5 == 90}">
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
<c:if test="${not empty indexCfg.userRegion4 }">
|
||||
<c:forEach items="${allHijackFiles}" var="file">
|
||||
<c:if test="${file.compileId eq indexCfg.userRegion4}">
|
||||
<a href="${file.path }" target="_blank">${file.cfgDesc }</a>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:forEach items="${allInsertFiles}" var="file">
|
||||
<c:if test="${file.compileId eq indexCfg.userRegion4}">
|
||||
<a href="${file.path }" target="_blank">${file.cfgDesc }</a>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</td>
|
||||
</c:if>
|
||||
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user