ip公共展示列表修改限速展示方式

This commit is contained in:
wangxin
2018-08-21 08:44:31 +08:00
parent 0f64a1c10e
commit 52412bfc80

View File

@@ -323,6 +323,11 @@
<div class="table-responsive">
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed text-nowrap">
<c:forEach items="${serviceList}" var="service">
<c:if test="${service.action==64}">
<c:set var="hasRatelimit" value="1"/>
</c:if>
</c:forEach>
<thead>
<tr>
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
@@ -351,7 +356,7 @@
<th exportColumn="group_name"><spring:message code="group"/></th>
<th exportColumn="ir_type"><spring:message code="ir_type"/></th>
</c:if>
<c:if test="${specialFunctionId ne null and specialFunctionId eq 'ipratelimit'}">
<c:if test="${hasRatelimit==1}">
<th exportColumn="ratelimit"><spring:message code="ratelimit"/></th>
</c:if>
<c:if test="${specialFunctionId ne null and specialFunctionId eq 'pxyIpControl'}">
@@ -444,9 +449,9 @@
</c:forEach>
</td>
</c:if>
<c:if test="${specialFunctionId ne null and specialFunctionId eq 'ipratelimit'}">
<c:if test="${hasRatelimit==1}">
<td>
<c:if test="${cfg.ratelimit eq null}">0%</c:if>
<c:if test="${cfg.ratelimit eq null and cfg.action==64}">0%</c:if>
<c:if test="${cfg.ratelimit ne null}">${cfg.ratelimit}%</c:if>
</td>
</c:if>