2020-11-02 21:15:25 +08:00
|
|
|
|
{$layout "layout_popup"}
|
2021-12-07 15:03:48 +08:00
|
|
|
|
{$template "/code_editor"}
|
2020-11-02 21:15:25 +08:00
|
|
|
|
|
|
|
|
|
|
<div class="ui menu tabular tiny">
|
|
|
|
|
|
<a class="item" :class="{active: tab == 'summary'}" @click.prevent="switchTab('summary')">综合信息</a>
|
|
|
|
|
|
<a class="item" :class="{active: tab == 'response'}" @click.prevent="switchTab('response')">响应数据(Response)</a>
|
|
|
|
|
|
<a class="item" :class="{active: tab == 'request'}" @click.prevent="switchTab('request')">请求数据(Request)</a>
|
|
|
|
|
|
<a class="item" :class="{active: tab == 'cookie'}" @click.prevent="switchTab('cookie')">Cookie</a>
|
|
|
|
|
|
<a class="item" :class="{active: tab == 'client'}" @click.prevent="switchTab('client')">终端信息</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="tab == 'summary'">
|
|
|
|
|
|
<table class="ui table selectable small">
|
|
|
|
|
|
<tr>
|
2020-11-03 16:38:48 +08:00
|
|
|
|
<td style="width: 50%">请求概要<em>(Request)</em>:{{accessLog.request}}</td>
|
2021-12-02 11:49:36 +08:00
|
|
|
|
<td>请求ID:{{accessLog.requestId}}</td>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2020-11-03 16:38:48 +08:00
|
|
|
|
<td>请求方法<em>(RequestMethod)</em>:{{accessLog.requestMethod}}</td>
|
2021-12-02 11:49:36 +08:00
|
|
|
|
<td>请求URI<em>(RequestURI)</em>:{{accessLog.requestURI}}</td>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2021-12-02 11:49:36 +08:00
|
|
|
|
<td>主机地址<em>(Host)</em>:{{accessLog.host}}</td>
|
2020-11-03 16:38:48 +08:00
|
|
|
|
<td>终端地址<em>(RemoteAddr:RemotePort)</em>:{{accessLog.remoteAddr}}:{{accessLog.remotePort}}</td>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2021-12-02 11:49:36 +08:00
|
|
|
|
<td>请求来源<em>(Referer)</em>:
|
|
|
|
|
|
<span v-if="accessLog.referer != null && accessLog.referer.length > 0">{{accessLog.referer}}</span>
|
|
|
|
|
|
<span v-else class="disabled">[没有设置]</span>
|
|
|
|
|
|
</td>
|
2020-11-03 16:38:48 +08:00
|
|
|
|
<td>终端信息<em>(UserAgent)</em>:
|
2020-11-02 21:15:25 +08:00
|
|
|
|
<span v-if="accessLog.userAgent != null && accessLog.userAgent.length > 0">{{accessLog.userAgent}}</span>
|
2021-12-02 11:49:36 +08:00
|
|
|
|
<span v-else class="disabled">[没有设置]</span>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2020-11-03 16:38:48 +08:00
|
|
|
|
<td>状态<em>(StatusMessage)</em>:<span :class="{red:accessLog.status>=400, green:accessLog.status<400}">{{accessLog.status}} {{accessLog.statusMessage}}</span></td>
|
|
|
|
|
|
<td>文件类型<em>(ContentType)</em>:
|
2020-11-02 21:15:25 +08:00
|
|
|
|
<span v-if="accessLog.contentType != null && accessLog.contentType.length > 0">{{accessLog.contentType}}</span>
|
|
|
|
|
|
<span v-else>-</span>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2022-04-17 20:22:34 +08:00
|
|
|
|
<td>发送字节<em>(BytesSent)</em>:
|
|
|
|
|
|
<span v-if="accessLog.bytesSent != null">{{accessLog.bytesSent}}
|
|
|
|
|
|
<span v-if="accessLog.bytesSent > 0" class="grey small">({{teaweb.formatBytes(accessLog.bytesSent)}})</span>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<span v-else class="disabled">0</span>
|
|
|
|
|
|
</td>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
<td></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>ISO8601时间:{{accessLog.timeISO8601}}</td>
|
2020-11-03 16:38:48 +08:00
|
|
|
|
<td>本地时间<em>(TimeLocal)</em>:{{accessLog.timeLocal}}</td>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr v-if="wafInfo != null">
|
|
|
|
|
|
<td class="color-border">WAF策略:{{wafInfo.policy.name}}</td>
|
|
|
|
|
|
<td>WAF规则分组:
|
|
|
|
|
|
<span v-if="wafInfo.group != null">{{wafInfo.group.name}}</span>
|
|
|
|
|
|
<span v-else>-</span>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr v-if="wafInfo != null && wafInfo.set != null">
|
2022-01-14 10:45:58 +08:00
|
|
|
|
<td class="color-border">WAF规则集:
|
|
|
|
|
|
<a :href="'/servers/components/waf/group?firewallPolicyId=' + accessLog.firewallPolicyId + '&type=inbound&groupId=' + accessLog.firewallRuleGroupId+ '#set' + accessLog.firewallRuleSetId" v-if="wafInfo.policy.serverId == 0" target="_parent">{{wafInfo.set.name}}</a>
|
|
|
|
|
|
<a :href="'/servers/server/settings/waf/group?serverId=' + accessLog.serverId + '&firewallPolicyId=' + accessLog.firewallPolicyId + '&type=inbound&groupId=' + accessLog.firewallRuleGroupId + '#set' + accessLog.firewallRuleSetId" target="_parent" v-if="wafInfo.policy.serverId > 0">{{wafInfo.set.name}}</a> </td>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
<td></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr v-if="accessLog.errors != null && accessLog.errors.length > 0">
|
|
|
|
|
|
<td colspan="2">
|
|
|
|
|
|
<div v-for="error in accessLog.errors">
|
2021-05-10 21:13:09 +08:00
|
|
|
|
<pre><span class="red">{{error}}</span></pre>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="tab == 'response'">
|
2022-04-05 15:58:35 +08:00
|
|
|
|
<table class="ui table definition selectable small">
|
2022-04-05 15:38:22 +08:00
|
|
|
|
<tr>
|
|
|
|
|
|
<td class="title">Status</td>
|
|
|
|
|
|
<td>{{accessLog.status}} {{accessLog.statusMessage}}</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
2022-04-05 15:58:35 +08:00
|
|
|
|
<table class="ui table definition selectable small" v-if="responseHeaders.length > 0">
|
2022-04-05 15:38:22 +08:00
|
|
|
|
<tbody v-for="header in responseHeaders">
|
|
|
|
|
|
<tr v-for="value in header.values">
|
2022-04-05 15:43:49 +08:00
|
|
|
|
<td class="title">
|
|
|
|
|
|
<span v-if="header.isGeneral">{{header.name}}</span>
|
|
|
|
|
|
<span style="font-style: italic" v-else>{{header.name}}</span>
|
|
|
|
|
|
</td>
|
2022-04-05 15:38:22 +08:00
|
|
|
|
<td>{{value}}</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="tab == 'request'">
|
2022-04-05 15:58:35 +08:00
|
|
|
|
<table class="ui table definition selectable small">
|
2022-04-05 15:38:22 +08:00
|
|
|
|
<tbody v-for="header in requestHeaders">
|
|
|
|
|
|
<tr v-for="value in header.values">
|
2022-04-05 15:43:49 +08:00
|
|
|
|
<td class="title">
|
|
|
|
|
|
<span v-if="header.isGeneral">{{header.name}}</span>
|
|
|
|
|
|
<span style="font-style: italic" v-else>{{header.name}}</span>
|
|
|
|
|
|
</td>
|
2022-04-05 15:38:22 +08:00
|
|
|
|
<td>{{value}}</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
<tbody v-if="requestBody.length > 0">
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td colspan="2">
|
|
|
|
|
|
<source-code-box :type="requestContentType" width="0" height="200">{{requestBody}}</source-code-box>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="tab == 'cookie'">
|
2022-04-05 15:58:35 +08:00
|
|
|
|
<p class="comment" v-if="cookies.length == 0">暂时没有Cookie数据。</p>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
<div v-else>
|
2022-04-05 15:58:35 +08:00
|
|
|
|
<table class="ui table definition selectable small">
|
|
|
|
|
|
<tr v-for="cookie in cookies">
|
|
|
|
|
|
<td class="title">{{cookie.name}}</td>
|
|
|
|
|
|
<td>{{cookie.value}}</td>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="tab == 'client'">
|
2022-04-05 15:58:35 +08:00
|
|
|
|
<table class="ui table definition selectable small">
|
2020-11-02 21:15:25 +08:00
|
|
|
|
<tr>
|
2020-11-03 16:38:48 +08:00
|
|
|
|
<td class="title">综合信息<em>(UserAgent)</em></td>
|
2022-04-05 15:58:35 +08:00
|
|
|
|
<td>
|
|
|
|
|
|
<span v-if="accessLog.userAgent != null && accessLog.userAgent.length > 0">{{accessLog.userAgent}}</span>
|
|
|
|
|
|
<span class="disabled" v-else>[没有设置]</span>
|
|
|
|
|
|
</td>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>IP</td>
|
|
|
|
|
|
<td>{{accessLog.remoteAddr}}</td>
|
|
|
|
|
|
</tr>
|
2020-11-05 11:51:42 +08:00
|
|
|
|
<tr v-if="region != null">
|
|
|
|
|
|
<td>区域</td>
|
|
|
|
|
|
<td>{{region.full}}</td>
|
|
|
|
|
|
</tr>
|
2021-07-20 10:55:25 +08:00
|
|
|
|
<tr v-if="region != null && region.isp != null && region.isp.length > 0">
|
2020-11-05 11:51:42 +08:00
|
|
|
|
<td>ISP</td>
|
|
|
|
|
|
<td>{{region.isp}}</td>
|
|
|
|
|
|
</tr>
|
2020-11-02 21:15:25 +08:00
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|