Files
waf-platform/EdgeAdmin/web/views/@default/servers/accesslogs/index.html
2026-02-14 17:12:38 +08:00

34 lines
1.4 KiB
HTML

{$layout}
{$template "menu"}
<p class="comment" v-if="policies.length == 0">暂时还没有访问日志策略。</p>
<table class="ui table celled selectable" v-if="policies.length > 0">
<thead>
<tr>
<th style="width: 14em;">策略名称</th>
<th class="op" style="width: 12em; white-space: nowrap;">类型</th>
<th class="two wide">状态</th>
<th class="two op">操作</th>
</tr>
</thead>
<tr v-for="policy in policies">
<td><a :href="Tea.url('.policy', {policyId: policy.id})">{{policy.name}}</a>
<div style="margin-top: 0.3em" v-if="policy.isPublic || policy.firewallOnly">
<span class="ui label olive tiny basic" v-if="policy.isPublic">公用</span>
<span class="ui label tiny basic" v-if="policy.firewallOnly">只记录WAF</span>
<span class="ui label tiny basic" v-if="policy.disableDefaultDB">停用默认数据库</span>
</div>
</td>
<td style="white-space: nowrap;">{{policy.typeName}}</td>
<td>
<label-on :v-is-on="policy.isOn"></label-on>
</td>
<td>
<a :href="Tea.url('.policy', {policyId: policy.id})">详情</a> &nbsp; <a href="" @click.prevent="deletePolicy(policy.id)">删除</a>
</td>
</tr>
</table>
<div class="page" v-html="page"></div>