WAF策略增加观察模式和通过模式

This commit is contained in:
刘祥超
2021-09-30 11:30:36 +08:00
parent ca72b3c18b
commit 0b26cbdd01
6 changed files with 50 additions and 5 deletions

View File

@@ -37,10 +37,19 @@
</thead>
<tr v-for="policy in policies">
<td><a :href="'/servers/components/waf/policy?firewallPolicyId=' + policy.id"><keyword :v-word="keyword">{{policy.name}}</keyword></a></td>
<td class="center">{{policy.countInbound}}</td>
<td class="center">{{policy.countOutbound}}</td>
<td class="center">
<a :href="'/servers/components/waf/groups?firewallPolicyId=' + policy.id + '&type=inbound'"><span :class="{disabled:policy.countInbound == 0 }">{{policy.countInbound}}</span></a>
</td>
<td class="center">
<a :href="'/servers/components/waf/groups?firewallPolicyId=' + policy.id + '&type=outbound'"><span :class="{disabled:policy.countOutbound == 0 }">{{policy.countOutbound}}</span></a>
</td>
<td class="center">{{policy.countClusters}}</td>
<td class="center"><label-on :v-is-on="policy.isOn"></label-on></td>
<td class="center">
<span v-if="!policy.isOn" class="red">已停用</span>
<div v-else-if="policy.modeInfo != null">
<span :class="{green: policy.modeInfo.code == 'defend', blue: policy.modeInfo.code == 'observe', grey: policy.modeInfo.code == 'pass'}">{{policy.modeInfo.name}}</span>
</div>
</td>
<td>
<a :href="'/servers/components/waf/policy?firewallPolicyId=' + policy.id">详情</a> &nbsp;
<a href="" @click.prevent="deletePolicy(policy.id)">删除</a>