操控增加国际化代码,修改列表action检索
This commit is contained in:
@@ -109,11 +109,11 @@
|
||||
</c:forEach>
|
||||
<label class="radio-inline"><%-- HiJack标识为85 --%>
|
||||
<input type="radio" name="manipulatType" class="userRegion5" value="85" class="required">
|
||||
<spring:message code="HiJack"/>
|
||||
<spring:message code="action_hijack"/>
|
||||
</label>
|
||||
<label class="radio-inline"><%-- Insert标识为90 --%>
|
||||
<input type="radio" name="manipulatType" class="userRegion5" value="90" class="required">
|
||||
<spring:message code="Insert"/>
|
||||
<spring:message code="action_insert"/>
|
||||
</label>
|
||||
</div>
|
||||
<div for="manipulatType"></div>
|
||||
|
||||
@@ -118,12 +118,11 @@
|
||||
$(this).removeAttr("disabled");
|
||||
});
|
||||
$("select[name='httpResHdrList[0].district']").selectpicker("refresh");
|
||||
$("select[name='httpResHdrList[0].district']").change();
|
||||
|
||||
// 域配置隐藏/显示
|
||||
if(selValue == 48){ // Redirect 隐藏响应体
|
||||
if(selValue == 48){ // Redirect 隐藏响应体
|
||||
$(".resBodyCfg").addClass("hidden");
|
||||
}else if(selValue == 80){ // Replace 隐藏请求响应体
|
||||
}else if(selValue == 80){ // Replace 隐藏请求响应体
|
||||
$(".reqBodyCfg").addClass("hidden");
|
||||
$(".resBodyCfg").addClass("hidden");
|
||||
}else if(selValue == 85 || selValue == 90){ // Hijack/Insert 隐藏请求头、请求体和响应体
|
||||
@@ -327,13 +326,13 @@
|
||||
<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="HiJack"/>
|
||||
<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="Insert"/>
|
||||
<spring:message code="action_insert"/>
|
||||
</label>
|
||||
</div>
|
||||
<div for="userRegion5"></div>
|
||||
|
||||
@@ -204,11 +204,19 @@
|
||||
|
||||
<input id="intype" class="form-control input-medium" type="text" value="">
|
||||
<div class="input-group-btn">
|
||||
<form:select id="actionSelect" path="action" class="selectpicker select2 input-small" >
|
||||
<form:select id="actionSelect" path="userRegion5" class="selectpicker select2 input-small" >
|
||||
<form:option value=""><spring:message code="select"/></form:option>
|
||||
<c:forEach items="${serviceList}" var="service">
|
||||
<%-- <c:forEach items="${serviceList}" var="service">
|
||||
<form:option value="${service.action }"><spring:message code="action_${service.actionCode }"/></form:option>
|
||||
</c:forEach> --%>
|
||||
|
||||
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||
<c:if test="${dict.itemCode == 16 || dict.itemCode == 48 || dict.itemCode == 80 }">
|
||||
<form:option value="${dict.itemCode }"><spring:message code="${dict.itemValue }"/></form:option>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<form:option value="85"><spring:message code="action_hijack"/></form:option>
|
||||
<form:option value="90"><spring:message code="action_insert"/></form:option>
|
||||
</form:select>
|
||||
<form:select path="isValid" class="selectpicker select2 input-small" >
|
||||
<form:option value=""><spring:message code="select"/></form:option>
|
||||
@@ -429,10 +437,10 @@
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${indexCfg.userRegion5 eq 85 }">
|
||||
<spring:message code="HiJack"/>
|
||||
<spring:message code="action_hijack"/>
|
||||
</c:if>
|
||||
<c:if test="${indexCfg.userRegion5 eq 90 }">
|
||||
<spring:message code="Insert"/>
|
||||
<spring:message code="action_insert"/>
|
||||
</c:if>
|
||||
</td>
|
||||
|
||||
|
||||
@@ -547,8 +547,9 @@ $(function(){
|
||||
|
||||
//处理增强字符串配置的匹配区域
|
||||
$(".district").each(function(){
|
||||
if($(this).siblings(".otherValue").val()!=''){
|
||||
if($(this).val()!=$(this).siblings(".otherValue").val()){
|
||||
var otherVal = $(this).siblings(".otherValue").val();
|
||||
if(otherVal != '' && typeof otherVal != 'undefined'){
|
||||
if($(this).val() != otherVal){
|
||||
$(this).find("option[value=others]").attr("selected","selected");
|
||||
$(this).siblings(".otherValue").prop("type","text");
|
||||
}
|
||||
|
||||
@@ -174,11 +174,14 @@ var importCfg=function(){
|
||||
}
|
||||
|
||||
// 代理-操控业务Profile Info
|
||||
if($("#profileSelId").val() == "" || $("#profileSelId").val() == null){
|
||||
$("span",$error).html($("#noneProfileTip").val());
|
||||
$error.removeClass("hide");
|
||||
$error.addClass("show");
|
||||
return false;
|
||||
if($("#functionId").val() == 215){
|
||||
if($("#profileSelId").val() == "" || $("#profileSelId").val() == null){
|
||||
$("span",$error).html($("#noneProfileTip").val());
|
||||
$error.removeClass("hide");
|
||||
$error.addClass("show");
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(fileName==""){
|
||||
|
||||
Reference in New Issue
Block a user