实现WAF策略部分功能

This commit is contained in:
刘祥超
2020-10-06 21:02:37 +08:00
parent d80d44c824
commit 088b2b36a6
29 changed files with 727 additions and 20 deletions

View File

@@ -2,5 +2,37 @@
{$template "/left_menu"}
<div class="right-box">
<p class="ui message">此功能暂未开放敬请期待。</p>
<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>
<table class="ui table selectable" v-if="policies.length > 0">
<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> &nbsp;
<a href="" @click.prevent="deletePolicy(policy.id)">删除</a>
</td>
</tr>
</table>
<div class="page" v-html="page"></div>
</div>