mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 05:00:25 +08:00
优化创建策略规则集提示
This commit is contained in:
@@ -54,7 +54,7 @@ func (this *CreateSetPopupAction) RunGet(params struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 所有可选的动作
|
// 所有可选的动作
|
||||||
actionMaps := []maps.Map{}
|
var actionMaps = []maps.Map{}
|
||||||
for _, action := range firewallconfigs.AllActions {
|
for _, action := range firewallconfigs.AllActions {
|
||||||
actionMaps = append(actionMaps, maps.Map{
|
actionMaps = append(actionMaps, maps.Map{
|
||||||
"name": action.Name,
|
"name": action.Name,
|
||||||
@@ -64,6 +64,9 @@ func (this *CreateSetPopupAction) RunGet(params struct {
|
|||||||
}
|
}
|
||||||
this.Data["actions"] = actionMaps
|
this.Data["actions"] = actionMaps
|
||||||
|
|
||||||
|
// 是否为全局
|
||||||
|
this.Data["isGlobalPolicy"] = firewallPolicy.ServerId == 0
|
||||||
|
|
||||||
this.Show()
|
this.Show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
<h3>添加规则集</h3>
|
<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">
|
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
|
||||||
<input type="hidden" name="groupId" :value="groupId"/>
|
<input type="hidden" name="groupId" :value="groupId"/>
|
||||||
<table class="ui table definition selectable">
|
<table class="ui table definition selectable">
|
||||||
|
|||||||
Reference in New Issue
Block a user