优化创建策略规则集提示

This commit is contained in:
刘祥超
2024-01-19 11:24:02 +08:00
parent 3e3f7b2cc6
commit bf282c41fd
2 changed files with 6 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ func (this *CreateSetPopupAction) RunGet(params struct {
}
// 所有可选的动作
actionMaps := []maps.Map{}
var actionMaps = []maps.Map{}
for _, action := range firewallconfigs.AllActions {
actionMaps = append(actionMaps, maps.Map{
"name": action.Name,
@@ -64,6 +64,9 @@ func (this *CreateSetPopupAction) RunGet(params struct {
}
this.Data["actions"] = actionMaps
// 是否为全局
this.Data["isGlobalPolicy"] = firewallPolicy.ServerId == 0
this.Show()
}

View File

@@ -2,6 +2,8 @@
<h3>添加规则集</h3>
<p class="ui message" v-if="isGlobalPolicy">当前设置的规则集为WAF策略的规则集将会应用于对应集群已经启用WAF的网站如果你只是想设置某个网站相关的规则集请到对应网站WAF功能中设置。</p>
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
<input type="hidden" name="groupId" :value="groupId"/>
<table class="ui table definition selectable">