修正配置修改时表达式类型默认选中与表达式.

This commit is contained in:
zhangwq
2018-12-14 18:46:57 +08:00
parent 502368658a
commit 5c06435d77
4 changed files with 7 additions and 4 deletions

View File

@@ -100,7 +100,7 @@ public class IpMultiplexPoolCfgController extends BaseController {
if(!StringUtil.isEmpty(ids)){ if(!StringUtil.isEmpty(ids)){
ipMultiplexPoolCfgService.delete(isAudit,isValid,ids,functionId); ipMultiplexPoolCfgService.delete(isAudit,isValid,ids,functionId);
} }
addMessage(redirectAttributes,"delete_success"); addMessage(redirectAttributes,"success","delete_success");
}catch(Exception e){ }catch(Exception e){
logger.error(e); logger.error(e);
addMessage(redirectAttributes,"error", "delete_failed"); addMessage(redirectAttributes,"error", "delete_failed");

View File

@@ -192,7 +192,7 @@ public class InterceptController extends CommonController{
public String updateInterceptIpValid(Integer isValid,String ids,Integer functionId, RedirectAttributes redirectAttributes) { public String updateInterceptIpValid(Integer isValid,String ids,Integer functionId, RedirectAttributes redirectAttributes) {
try { try {
interceptCfgService.updatInterceptValid(isValid,ids,functionId); interceptCfgService.updatInterceptValid(isValid,ids,functionId);
addMessage(redirectAttributes,"error","delete_success"); addMessage(redirectAttributes,"success","delete_success");
} catch (Exception e) { } catch (Exception e) {
logger.error("intercept ip delete failed",e); logger.error("intercept ip delete failed",e);
addMessage(redirectAttributes,"error","delete_failed"); addMessage(redirectAttributes,"error","delete_failed");

View File

@@ -54,7 +54,7 @@
<div class="page-content"> <div class="page-content">
<div class="theme-panel hidden-xs hidden-sm"> <div class="theme-panel hidden-xs hidden-sm">
<shiro:hasPermission name="app:http:config"> <shiro:hasPermission name="app:ssl:config">
<button type="button" class="btn btn-primary" <button type="button" class="btn btn-primary"
onClick="javascript:window.location='${ctx}/app/sslCfgForm?functionId=${cfg.functionId}'"> onClick="javascript:window.location='${ctx}/app/sslCfgForm?functionId=${cfg.functionId}'">
<i class="fa fa-plus"></i> <i class="fa fa-plus"></i>

View File

@@ -123,7 +123,10 @@
<input type="radio" <input type="radio"
name="${cfgName}.exprType" value="${exprType }" name="${cfgName}.exprType" value="${exprType }"
class="required" class="required"
<c:if test="${stat.index == 0 }"> checked </c:if> <%-- <c:if test="${stat.index == 0 }"> checked </c:if> --%>
<c:if test="${cfg.exprType eq exprType || (empty cfg.exprType && exprType eq 0)}">
checked
</c:if>
> >
<spring:message code="${exprTypeC.itemValue }" /> <spring:message code="${exprTypeC.itemValue }" />
</label> </label>