去掉分组管理无用代码

This commit is contained in:
zhangwenqing
2019-06-05 10:40:36 +08:00
parent 2e2249ce15
commit c83472c508
20 changed files with 395 additions and 1065 deletions

View File

@@ -39,13 +39,6 @@
if(true == $(this).is(':checked')){
str += $(this).attr("id")+"_"+$(this).attr("groupType")+",";
ids += $(this).attr("id")+",";
/* if(typeof (map.get($(this).attr("groupType"))) != "undefined"){
map.set($(this).attr("groupType"), map.get($(this).attr("groupType")) +"_"+ $(this).attr("id"));
}else{
map.set($(this).attr("groupType"), $(this).attr("id"));
} */
//map.set($(this).attr("groupType"),$(this).attr("id"));
}
});
@@ -140,21 +133,13 @@
</div> --%>
<div class="pull-left">
<div class="input-group">
<div class="input-group-btn">
<form:select path="seltype" class="selectpicker select2 input-small" >
<form:option value="groupName"><spring:message code="group_name"></spring:message></form:option>
<%-- <c:if test="${cfg.groupType==4}">
<form:option value="asnNo"><spring:message code="asn_no"></spring:message></form:option>
</c:if> --%>
</form:select>
</div>
<input id="intype" class="form-control input-medium" type="text" value="">
</div>
</div>
<div class="pull-left">
@@ -162,16 +147,13 @@
<button type="button" class="btn btn-default" id="resetBtn"> <i class="fa fa-refresh"></i> <spring:message code="reset"/> </button>
<button type="button" class="btn btn-default" id="filter-btn"> <spring:message code="filter"/> <i class="fa fa-angle-double-down"></i></button>
</div>
<div class="pull-right">
<%-- <shiro:hasPermission name="avContUrl:config"> --%>
<sys:delRow url="${ctx}/basics/commonGroup/form?groupType=${cfg.groupType}" id="contentTable" label="update"></sys:delRow>
<a href="javascript:void(0);" class="btn btn-default" onclick="deletes('${ctx}/basics/commonGroup/delete?isValid=0&groupType=${cfg.groupType}')" data-toggle="tooltip" data-placement="top">
<i class="fa fa-trash"> <spring:message code="delete"/></i>
</a>
<%-- <sys:delRow url="${ctx}/basics/asn/delete?isValid=-1&functionId=${cfg.functionId }" id="contentTable" label="delete"></sys:delRow> --%>
<%-- </shiro:hasPermission> --%>
<div class="btn-group">
<div class="pull-right">
<sys:delRow url="${ctx}/basics/commonGroup/form?groupType=${cfg.groupType}" id="contentTable" label="update"></sys:delRow>
<a href="javascript:void(0);" class="btn btn-default" onclick="deletes('${ctx}/basics/commonGroup/delete?isValid=0&groupType=${cfg.groupType}')" data-toggle="tooltip" data-placement="top">
<i class="fa fa-trash"> <spring:message code="delete"/></i>
</a>
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-wrench"></i> <spring:message code="export"></spring:message>
<i class="fa fa-angle-down"></i>
@@ -181,7 +163,6 @@
<li><sys:delRow url="${ctx}/basics/commonGroup/exportGroup?exType=csv" searchUrl="${ctx}/basics/commonGroup/list" id="contentTable" maxRow="5" label="cfg_csv"></sys:delRow></li>
</ul>
</div>
<a class="btn btn-icon-only btn-default setfields tooltips"
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
<i class="icon-wrench"></i>
@@ -240,12 +221,6 @@
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
<th column="group_name" ><spring:message code="group_name"/></th>
<th column="group_type" ><spring:message code="group_type"/></th>
<%-- <c:if test="${cfg.groupType==4}">
<th column="asn_no" ><spring:message code="asn_no"/></th>
</c:if> --%>
<%-- <c:if test="${cfg.groupType==6}">
<th><spring:message code="group_type"/></th>
</c:if> --%>
<th column="desc" ><spring:message code="desc"/></th>
<th column="creator" ><spring:message code="creator"/></th>
<th column="config_time" class="sort-column r.create_time"><spring:message code="config_time"/></th>
@@ -256,60 +231,24 @@
<tbody>
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
<tr>
<td><input type="checkbox" class="i-checks" id="${cfg.groupId}" groupType="${cfg.groupType}" serviceGroupId="${cfg.serviceGroupId}"></td>
<td>
<a href="javascript:;" data-original-title="${cfg.groupName}"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
${fns:abbr(cfg.groupName,20)}
</a>
</td>
<td>
<%-- <c:if test="${cfg.groupType==5}">
<spring:message code="IP GROUP"/>
</c:if>
<c:if test="${cfg.groupType==6}">
<spring:message code="URL GROUP"/>
</c:if>
<c:if test="${cfg.groupType==7}">
<spring:message code="Domain GROUP"/>
</c:if>
<c:if test="${cfg.groupType==8}">
<spring:message code="SubscribeID GROUP"/>
</c:if> --%>
<c:forEach items="${fns:getDictList('GROUP_TYPE')}" var="groupTypeC">
<c:if test="${cfg.groupType==groupTypeC.itemCode }"><spring:message code="${groupTypeC.itemValue}"/></c:if>
</c:forEach>
<%-- <c:choose>
<c:when test="${cfg.groupType==6 }">
<c:forEach items="${fns:getDictList('IR_TYPE')}" var="groupTypeC">
<c:if test="${cfg.asnNo==groupTypeC.itemCode }"><spring:message code="${groupTypeC.itemValue}"/></c:if>
</c:forEach>
</c:when>
<c:otherwise>
<c:forEach items="${fns:getDictList('GROUP_TYPE')}" var="groupTypeC">
<c:if test="${cfg.groupType==groupTypeC.itemCode }"><spring:message code="${groupTypeC.itemValue}"/></c:if>
</c:forEach>
</c:otherwise>
</c:choose> --%>
</td>
<%-- <c:if test="${cfg.groupType==4}">
<td>${cfg.asnNo}</td>
</c:if> --%>
<%-- <c:if test="${cfg.groupType==6}">
<td>
<c:forEach items="${fns:getDictList('IR_TYPE')}" var="ipTypeC">
<c:if test="${cfg.asnNo==ipTypeC.itemCode}">
${ipTypeC.itemValue }
</c:if>
</c:forEach>
</td>
</c:if> --%>
<td title="${cfg.description }">${fns:abbr(cfg.description,20)}</td>
<td>${cfg.creatorName }</td>
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
<td>${cfg.editorName }</td>
<td><fmt:formatDate value="${cfg.editTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
</tr>
<td><input type="checkbox" class="i-checks" id="${cfg.groupId}" groupType="${cfg.groupType}" serviceGroupId="${cfg.serviceGroupId}"></td>
<td>
<a href="javascript:;" data-original-title="${cfg.groupName}"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
${fns:abbr(cfg.groupName,20)}
</a>
</td>
<td>
<c:forEach items="${fns:getDictList('GROUP_TYPE')}" var="groupTypeC">
<c:if test="${cfg.groupType==groupTypeC.itemCode }"><spring:message code="${groupTypeC.itemValue}"/></c:if>
</c:forEach>
</td>
<td title="${cfg.description }">${fns:abbr(cfg.description,20)}</td>
<td>${cfg.creatorName }</td>
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
<td>${cfg.editorName }</td>
<td><fmt:formatDate value="${cfg.editTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
</tr>
</c:forEach>
</tbody>
</table>