mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-02 03:40:27 +08:00
IP名单列表显示代号
This commit is contained in:
@@ -36,8 +36,8 @@ func (this *ListsAction) RunGet(params struct {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
count := countResp.Count
|
||||
page := this.NewPage(count)
|
||||
var count = countResp.Count
|
||||
var page = this.NewPage(count)
|
||||
this.Data["page"] = page.AsHTML()
|
||||
|
||||
listsResp, err := this.RPC().IPListRPC().ListEnabledIPLists(this.AdminContext(), &pb.ListEnabledIPListsRequest{
|
||||
@@ -65,6 +65,7 @@ func (this *ListsAction) RunGet(params struct {
|
||||
"id": list.Id,
|
||||
"isOn": list.IsOn,
|
||||
"name": list.Name,
|
||||
"code": list.Code,
|
||||
"description": list.Description,
|
||||
"countItems": countItems,
|
||||
"type": list.Type,
|
||||
|
||||
@@ -49,7 +49,7 @@ func (this *IndexAction) RunGet(params struct {
|
||||
this.Data["webId"] = webConfig.Id
|
||||
this.Data["firewallConfig"] = webConfig.FirewallRef
|
||||
|
||||
// 获取当前服务所在集群的WAF设置
|
||||
// 获取当前网站所在集群的WAF设置
|
||||
firewallPolicy, err := dao.SharedHTTPFirewallPolicyDAO.FindEnabledHTTPFirewallPolicyWithServerId(this.AdminContext(), params.ServerId)
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<div class="ui field">
|
||||
<select class="ui dropdown auto-width" name="listType" v-model="listType">
|
||||
<option value="">[类型]</option>
|
||||
<option value="">[所有类型]</option>
|
||||
<option value="black">黑名单</option>
|
||||
<option value="white">白名单</option>
|
||||
<option value="grey">灰名单</option>
|
||||
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<div class="ui field">
|
||||
<select class="ui dropdown" name="eventLevel" v-model="eventLevel">
|
||||
<option value="">[级别]</option>
|
||||
<option value="">[所有级别]</option>
|
||||
<option v-for="level in eventLevels" :value="level.code">{{level.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
<tr>
|
||||
<th class="one wide center">ID</th>
|
||||
<th class="three wide">名称</th>
|
||||
<th class="two wide">代号</th>
|
||||
<th class="two wide center">类型</th>
|
||||
<th>备注</th>
|
||||
<th class="two wide center">IP数量</th>
|
||||
@@ -37,6 +38,10 @@
|
||||
<a :href="'/servers/iplists/list?listId=' + list.id"><keyword :v-word="keyword">{{list.name}}</keyword></a>
|
||||
<div v-if="list.isGlobal" style="margin-top: 0.3em"><grey-label>全局</grey-label></div>
|
||||
</td>
|
||||
<td>
|
||||
<span v-if="list.code != null && list.code.length > 0">{{list.code}}</span>
|
||||
<span v-else class="disabled">-</span>
|
||||
</td>
|
||||
<td class="center">
|
||||
<span v-if="list.type == 'black'"><span class="red">黑名单</span></span>
|
||||
<span v-if="list.type == 'white'"><span class="green">白名单</span></span>
|
||||
|
||||
Reference in New Issue
Block a user