mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-13 11:53:34 +08:00
WAF规则增加备注信息/其他界面优化
This commit is contained in:
@@ -14,7 +14,7 @@ Vue.component("http-firewall-rule-label", {
|
||||
|
||||
},
|
||||
template: `<div>
|
||||
<div class="ui label tiny basic">
|
||||
<div class="ui label tiny basic" style="line-height: 1.5">
|
||||
{{rule.name}}[{{rule.param}}]
|
||||
|
||||
<!-- cc2 -->
|
||||
@@ -33,6 +33,9 @@ Vue.component("http-firewall-rule-label", {
|
||||
{{rule.value}}
|
||||
</span>
|
||||
|
||||
<!-- description -->
|
||||
<span v-if="rule.description != null && rule.description.length > 0" class="grey small">({{rule.description}})</span>
|
||||
|
||||
<a href="" v-if="rule.err != null && rule.err.length > 0" @click.prevent="showErr(rule.err)" style="color: #db2828; opacity: 1; border-bottom: 1px #db2828 dashed; margin-left: 0.5em">规则错误</a>
|
||||
</div>
|
||||
</div>`
|
||||
|
||||
@@ -55,6 +55,9 @@ Vue.component("http-firewall-rules-box", {
|
||||
<span v-if="rule.paramFilters != null && rule.paramFilters.length > 0" v-for="paramFilter in rule.paramFilters"> | {{paramFilter.code}}</span> <var>{{rule.operator}}</var> {{rule.value}}
|
||||
</span>
|
||||
|
||||
<!-- description -->
|
||||
<span v-if="rule.description != null && rule.description.length > 0" class="grey small">({{rule.description}})</span>
|
||||
|
||||
<a href="" title="修改" @click.prevent="updateRule(index, rule)"><i class="icon pencil small"></i></a>
|
||||
<a href="" title="删除" @click.prevent="removeRule(index)"><i class="icon remove"></i></a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user