HTTP(S)操控

1.从配置到日志页面的跳转 2.列表的排序 3.配置ID查询条件的更改 4.八个新增字段的添加和展示
This commit is contained in:
shangguanyanfei
2019-06-04 14:19:24 +08:00
parent 30e04c19f6
commit 4494bbd5c4
7 changed files with 195 additions and 39 deletions

View File

@@ -191,7 +191,7 @@
<div class="col-md-2">
<div class="form-group">
<label><spring:message code="cfg_id"></spring:message></label>
<input name="compileId" type="text" class="form-control logCfgId number" value="${log.compileId }"/>
<input name="policyId" type="text" class="form-control logCfgId number" value="${log.policyId }"/>
</div>
</div>
<div class="col-md-4">
@@ -217,17 +217,17 @@
<thead>
<tr>
<th><spring:message code="log"/></th>
<th class="sort-column policy_id" isVisible="false" column="cfg_id" ><spring:message code="cfg_id"/></th>
<th class="sort-column action" isVisible="false" column="action" ><spring:message code="action"/></th>
<th class="sort-column policy_id" column="cfg_id" ><spring:message code="cfg_id"/></th>
<th class="sort-column action" column="action" ><spring:message code="action"/></th>
<%-- <th class="sort-column found_time" column="found_time" ><spring:message code="found_time"/></th> --%>
<th class="sort-column start_time" column="startTime" ><spring:message code="startTime"/></th>
<th class="sort-column end_time" column="endTime" ><spring:message code="endTime"/></th>
<th class="sort-column recv_time" isVisible="false" column="recv_time" ><spring:message code="recv_time"/></th>
<th class="sort-column start_time" isVisible="false" column="startTime" ><spring:message code="startTime"/></th>
<th class="sort-column end_time" isVisible="false" column="endTime" ><spring:message code="endTime"/></th>
<th class="sort-column recv_time" column="recv_time" ><spring:message code="recv_time"/></th>
<th class="sort-column entrance_id" isVisible="false" column="entrance_id" ><spring:message code="entrance_id"/></th>
<th class="sort-column url" column="URL"> URL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
<th class="sort-column host" isVisible="false" column="host" ><spring:message code="host"/></th>
<th class="sort-column host" column="host" ><spring:message code="host"/></th>
<th class="sort-column domain" column="domain_name" ><spring:message code="domain_name"/></th>
<th class="sort-column category" isVisible="false" column="category" ><spring:message code="category"/></th>
<c:if test="${fns:getUser().isAdmin()}">
@@ -283,6 +283,14 @@
<th class="sort-column protocol_id" isVisible="false" column="protocol" ><spring:message code='protocol'/></th>
<th class="sort-column con_latency_ms" isVisible="false" column="con_latency_ms" ><spring:message code='con_latency_ms'/></th>
<th class="sort-column pinningst" isVisible="false" column="pinning" ><spring:message code='pinning'/></th>
<th class="sort-column intercept_state" column="intercept_state" ><spring:message code='intercept_state'/></th>
<th class="sort-column ssl_server_side_latency" column="ssl_server_side_latency" ><spring:message code='ssl_server_side_latency'/></th>
<th class="sort-column ssl_client_side_latency" column="ssl_client_side_latency" ><spring:message code='ssl_client_side_latency'/></th>
<th class="sort-column ssl_server_side_version" column="ssl_server_side_version" ><spring:message code='ssl_server_side_version'/></th>
<th class="sort-column ssl_client_side_version" column="ssl_client_side_version" ><spring:message code='ssl_client_side_version'/></th>
<th class="sort-column ssl_cert_verify" column="ssl_cert_verify" ><spring:message code='ssl_cert_verify'/></th>
<th class="sort-column stream_trace_id" isVisible="false" column="stream_trace_id" ><spring:message code='stream_trace_id'/></th>
<th class="sort-column ssl_error" column="ssl_error" ><spring:message code='ssl_error'/></th>
<th class="sort-column c2s_pkt_num" isVisible="false" column="c2s_pkt_num" ><spring:message code='c2s_pkt_num'/></th>
<th class="sort-column s2c_pkt_num" isVisible="false" column="s2c_pkt_num" ><spring:message code='s2c_pkt_num'/></th>
<th class="sort-column c2s_byte_num" isVisible="false" column="c2s_byte_num" ><spring:message code='c2s_byte_num'/></th>
@@ -298,9 +306,9 @@
<tr>
<td>
<%-- <span id="open${status.index}" class="log-open-cfg" compileId="${log.cfgId }"> ▷ </span><span style="display: none" id="close${status.index}" > ▼ </span>
--%> <a href="javascript:void(0)" name="viewLogInfo" url="${ctx}/proxy/control/httpRedirect/ajaxHttpSubList" compileId="${log.compileId }" ><i class="icon-book-open"></i></a>
--%> <a href="javascript:void(0)" name="viewLogInfo" url="${ctx}/proxy/control/httpRedirect/ajaxHttpSubList" compileId="${log.policyId }" ><i class="icon-book-open"></i></a>
</td>
<td>${log.compileId }</td>
<td>${log.policyId }</td>
<td>
<c:set var="actions">${log.action }</c:set>
<c:forEach items="${fns:getDictList('SERVICE_ACTION')}" var="dict">
@@ -481,6 +489,30 @@
</c:forEach>
<spring:message code="${pinningsts}"/>
</td>
<td>
<c:set var="interceptStates">${log.interceptState }</c:set>
<c:forEach items="${fns:getDictList('INTERCEPT_STATE')}" var="interceptType">
<c:if test="${interceptType.itemCode eq log.interceptState}">
<c:set var="interceptStates">${interceptType.itemValue}</c:set>
</c:if>
</c:forEach>
<spring:message code="${interceptStates}"/>
</td>
<td>${log.sslServerSideLatency }</td>
<td>${log.sslClientSideLatency }</td>
<td>${log.sslServerSideVersion }</td>
<td>${log.sslClientSideVersion }</td>
<td>
<c:set var="sslCertVerifys">${log.sslCertVerify }</c:set>
<c:forEach items="${fns:getDictList('SSL_CERT_VERIFY')}" var="sslCertVerifyType">
<c:if test="${sslCertVerifyType.itemCode eq log.sslCertVerify}">
<c:set var="sslCertVerifys">${sslCertVerifyType.itemValue}</c:set>
</c:if>
</c:forEach>
<spring:message code="${sslCertVerifys}"/>
</td>
<td>${log.streamTraceId }</td>
<td>${log.sslError }</td>
<td>${log.c2sPktNum }</td>
<td>${log.s2cPktNum }</td>
<td>${log.c2sByteNum }</td>