APP相关模块统一使用appCode作为检索条件
This commit is contained in:
@@ -100,6 +100,9 @@
|
||||
<body>
|
||||
|
||||
<div class="page-content">
|
||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
||||
</c:forEach>
|
||||
<div class="theme-panel hidden-xs hidden-sm">
|
||||
<shiro:hasPermission name="app:policy:config">
|
||||
<button type="button" class="addId btn btn-primary"
|
||||
@@ -451,8 +454,8 @@
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</td>
|
||||
<td class="appCode" id="${cfg.appCode }">${cfg.appCode }</td>
|
||||
<td class="behavCode" id="${cfg.behavCode }">${cfg.behavCode }</td>
|
||||
<td class="appCode" id="${cfg.appCode }" cfgType="${app }"></td>
|
||||
<td class="behavCode" id="${cfg.behavCode }" cfgType="${app }"></td>
|
||||
<%-- <td>${cfg.ratelimit }</td> --%>
|
||||
<td>
|
||||
<c:choose>
|
||||
|
||||
@@ -455,7 +455,7 @@
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</td>
|
||||
<td class="appCode" id="${cfg.appCode }">${cfg.appCode }</td>
|
||||
<td class="appCode" id="${cfg.appCode }" cfgType="${app }"></td>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${cfg.isAudit eq '0'}"><span class="label label-danger"><spring:message code="created"></spring:message></span></c:when>
|
||||
|
||||
@@ -100,6 +100,9 @@
|
||||
<body>
|
||||
|
||||
<div class="page-content">
|
||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
||||
<c:if test="${dict.itemValue eq 'encrypted_tunnel_behavior'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
||||
</c:forEach>
|
||||
<div class="theme-panel hidden-xs hidden-sm">
|
||||
<shiro:hasPermission name="encryptedtunnelbehav:config">
|
||||
<button type="button" class="addId btn btn-primary"
|
||||
@@ -451,8 +454,8 @@
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</td>
|
||||
<td class="appCode" id="${cfg.appCode }">${cfg.appCode }</td>
|
||||
<td class="behavCode" id="${cfg.behavCode }">${cfg.behavCode }</td>
|
||||
<td class="appCode" id="${cfg.appCode }" cfgType="${app }"></td>
|
||||
<td class="behavCode" id="${cfg.behavCode }" cfgType="${app }"></td>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${cfg.isAudit eq '0'}"><span class="label label-danger"><spring:message code="created"></spring:message></span></c:when>
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
$(function(){
|
||||
var ids=[];
|
||||
var cfgType='';
|
||||
$(".appCode").each(function(){
|
||||
if($(this).attr("id")&&$(this).attr("id")!=''){
|
||||
ids.push($(this).attr("id"));
|
||||
}
|
||||
//ids.push($(this).attr("id"));
|
||||
if(cfgType == null || cfgType == '' ){
|
||||
cfgType=$(this).attr("cfgType");
|
||||
}
|
||||
});
|
||||
|
||||
$(".behavCode").each(function(){
|
||||
if($(this).attr("id")&&$(this).attr("id")!=''){
|
||||
ids.push($(this).attr("id"));
|
||||
@@ -17,7 +22,7 @@ $(function(){
|
||||
type:'post',
|
||||
async:false,
|
||||
url:pathName+'/app/ajaxAppName',
|
||||
data:{"ids":ids.join(",")},
|
||||
data:{"ids":ids.join(","),"cfgType":cfgType},
|
||||
success:function(data){
|
||||
if(data&&data.length==2){
|
||||
var apps=data[0];
|
||||
|
||||
Reference in New Issue
Block a user