优化网站服务WAF设置界面

This commit is contained in:
GoEdgeLab
2023-03-06 16:40:42 +08:00
parent 53dfa3b50f
commit 27fa4bfa68

View File

@@ -13,7 +13,13 @@ Vue.component("http-firewall-config-box", {
return { return {
firewall: firewall, firewall: firewall,
moreOptionsVisible: false moreOptionsVisible: false,
execGlobalRules: !firewall.ignoreGlobalRules
}
},
watch: {
execGlobalRules: function (v) {
this.firewall.ignoreGlobalRules = !v
} }
}, },
methods: { methods: {
@@ -43,17 +49,17 @@ Vue.component("http-firewall-config-box", {
<td class="title">启用WAF</td> <td class="title">启用WAF</td>
<td> <td>
<checkbox v-model="firewall.isOn"></checkbox> <checkbox v-model="firewall.isOn"></checkbox>
<p class="comment">启用WAF之后各项WAF设置才会生效。</p> <p class="comment">选中后表示启用当前网站服务的WAF功能。</p>
</td> </td>
</tr> </tr>
</tbody> </tbody>
<more-options-tbody @change="changeOptionsVisible"></more-options-tbody> <more-options-tbody @change="changeOptionsVisible"></more-options-tbody>
<tbody v-show="moreOptionsVisible"> <tbody v-show="moreOptionsVisible">
<tr> <tr>
<td>不使用全局规则</td> <td>启用系统全局规则</td>
<td> <td>
<checkbox v-model="firewall.ignoreGlobalRules"></checkbox> <checkbox v-model="execGlobalRules"></checkbox>
<p class="comment">选中后,表示<strong>不使用</strong>系统全局WAF策略中定义的规则。</p> <p class="comment">选中后,表示使用系统全局WAF策略中定义的规则。</p>
</td> </td>
</tr> </tr>
</tbody> </tbody>