Files
EdgeAdmin/web/views/@default/servers/components/waf/log.html

43 lines
1.7 KiB
HTML
Raw Normal View History

2020-10-07 11:18:07 +08:00
{$layout}
2021-06-05 16:53:26 +08:00
{$template "/datepicker"}
2020-10-07 11:18:07 +08:00
{$template "waf_menu"}
2020-11-10 12:47:24 +08:00
<form method="get" class="ui form small" :action="path" autocomplete="off">
<first-menu style="margin-top: -1em">
<div class="item">
<select class="ui dropdown" name="groupId" v-model="groupId">
<option value="0">[规则分组]</option>
<option v-for="group in groups" :value="group.id">{{group.name}}</option>
</select>
</div>
2020-11-02 14:37:28 +08:00
<div class="item right">
<input type="hidden" name="firewallPolicyId" :value="firewallPolicyId"/>
<div class="ui fields inline">
<div class="ui field">
<input type="text" name="day" maxlength="10" placeholder="选择日期" style="width:7.8em" id="day-input" v-model="day"/>
</div>
<div class="ui field">
<button class="ui button small" type="submit">查找</button>
2020-11-02 14:37:28 +08:00
</div>
</div>
2020-11-02 14:37:28 +08:00
</div>
</first-menu>
</form>
2020-11-02 14:37:28 +08:00
<p class="comment" v-if="accessLogs.length == 0">暂时还没有日志。</p>
<table class="ui table selectable" v-if="accessLogs.length > 0">
<!-- 这里之所以需要添加 :key是因为要不然不会刷新显示 -->
<tr v-for="accessLog in accessLogs" :key="accessLog.requestId">
<td><http-access-log-box :v-access-log="accessLog"></http-access-log-box></td>
</tr>
</table>
<div v-if="accessLogs.length > 0">
<a :href="path + '?requestId=' + lastRequestId + '&day=' + day + '&firewallPolicyId=' + firewallPolicyId + '&groupId=' + groupId" v-if="hasPrev">上一页</a>
2020-11-02 14:37:28 +08:00
<span v-else class="disabled">上一页</span>
<span class="disabled">&nbsp; | &nbsp;</span>
<a :href="path + '?requestId=' + nextRequestId + '&day=' + day + '&firewallPolicyId=' + firewallPolicyId + '&groupId=' + groupId" v-if="hasMore">下一页</a>
2020-11-02 14:37:28 +08:00
<span v-else class="disabled">下一页</span>
2020-11-27 15:18:32 +08:00
</div>