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

35 lines
1.1 KiB
HTML
Raw Normal View History

2020-09-13 20:37:07 +08:00
{$layout}
2020-10-06 21:02:37 +08:00
<second-menu>
<menu-item href="/servers/components/waf" code="index">列表</menu-item>
<span class="item">|</span>
<a href="" class="item" @click.prevent="createPolicy()">[创建]</a>
</second-menu>
<p class="comment" v-if="policies.length == 0">暂时还没有WAF策略。</p>
2020-11-16 13:03:45 +08:00
<table class="ui table selectable celled" v-if="policies.length > 0">
2020-10-06 21:02:37 +08:00
<thead>
<tr>
<th>策略名称</th>
2020-11-21 15:53:04 +08:00
<th class="center">入站规则分组</th>
<th class="center">出站规则分组</th>
<th class="center">集群数</th>
2020-11-21 15:53:04 +08:00
<th class="two wide center">状态</th>
2020-10-06 21:02:37 +08:00
<th class="two op">操作</th>
</tr>
</thead>
<tr v-for="policy in policies">
<td>{{policy.name}}</td>
2020-11-21 15:53:04 +08:00
<td class="center">{{policy.countInbound}}</td>
<td class="center">{{policy.countOutbound}}</td>
<td class="center">{{policy.countClusters}}</td>
2020-11-21 15:53:04 +08:00
<td class="center"><label-on :v-is-on="policy.isOn"></label-on></td>
2020-10-06 21:02:37 +08:00
<td>
<a :href="'/servers/components/waf/policy?firewallPolicyId=' + policy.id">详情</a> &nbsp;
<a href="" @click.prevent="deletePolicy(policy.id)">删除</a>
</td>
</tr>
</table>
2020-11-27 15:18:32 +08:00
<div class="page" v-html="page"></div>