2020-09-13 20:37:07 +08:00
|
|
|
{$layout}
|
2020-11-10 15:40:22 +08:00
|
|
|
{$template "/left_menu_top"}
|
2020-09-13 20:37:07 +08:00
|
|
|
|
2020-11-10 15:40:22 +08:00
|
|
|
<div class="right-box without-tabbar">
|
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>
|
|
|
|
|
<th>入站规则分组</th>
|
|
|
|
|
<th>出站规则分组</th>
|
|
|
|
|
<th>引用服务</th>
|
|
|
|
|
<th class="two wide">状态</th>
|
|
|
|
|
<th class="two op">操作</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tr v-for="policy in policies">
|
|
|
|
|
<td>{{policy.name}}</td>
|
|
|
|
|
<td>{{policy.countInbound}}</td>
|
|
|
|
|
<td>{{policy.countOutbound}}</td>
|
|
|
|
|
<td>{{policy.countServers}}</td>
|
|
|
|
|
<td><label-on :v-is-on="policy.isOn"></label-on></td>
|
|
|
|
|
<td>
|
|
|
|
|
<a :href="'/servers/components/waf/policy?firewallPolicyId=' + policy.id">详情</a>
|
|
|
|
|
<a href="" @click.prevent="deletePolicy(policy.id)">删除</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<div class="page" v-html="page"></div>
|
2020-09-13 20:37:07 +08:00
|
|
|
</div>
|