IP名单列表显示代号

This commit is contained in:
GoEdgeLab
2024-05-05 19:51:17 +08:00
parent 71c7b7dcc7
commit 2da73788ec
4 changed files with 11 additions and 5 deletions

View File

@@ -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>

View File

@@ -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>