改进操作日志

This commit is contained in:
GoEdgeLab
2020-11-20 15:32:42 +08:00
parent 60ba3e0a05
commit fc459a50b9
142 changed files with 230 additions and 100 deletions

View File

@@ -3,10 +3,10 @@
<p class="comment" v-if="logs.length == 0">暂时还没有日志。</p>
<table class="ui table selectable" v-for="log in logs">
<tr>
<tr :class="{error: log.level == 'error', warning: log.level == 'warn'}">
<td>{{log.createdTime}} <span class="grey"> <span v-if="log.userName.length > 0">| {{log.userName}}</span> | {{log.ip}}<span v-if="log.region.length > 0"> | {{log.region}}</span></span></td>
</tr>
<tr>
<tr :class="{error: log.level == 'error', warning: log.level == 'warn'}">
<td>{{log.description}}</td>
</tr>
</table>

View File

@@ -33,7 +33,7 @@
<th style="width:3em"></th>
<th nowrap="">规则集名称</th>
<th nowrap="">规则</th>
<th nowrap="">关系</th>
<th nowrap="" class="center">关系</th>
<th nowrap="">动作</th>
<th class="three op">操作</th>
</tr>
@@ -52,7 +52,7 @@
</div>
<span class="ui disabled" v-if="set.rules.length == 0">暂时还没有规则</span>
</td>
<td>{{set.connector.toUpperCase()}}</td>
<td class="center">{{set.connector.toUpperCase()}}</td>
<td><span :class="{red:set.action == 'BLOCK' || set.action == 'CAPTCHA', green:set.action != 'BLOCK' && set.action != 'CAPTCHA'}">{{set.actionName}}[{{set.action.toUpperCase()}}]</span>
<div v-if="set.actionLinks != null && set.actionLinks.length > 0" style="margin-top:0.3em">
<span class="disabled">-&gt;</span> <span v-for="link in set.actionLinks"><a :href="link.url"><span class="disabled">[{{link.name}}]</span></a> &nbsp;</span>

View File

@@ -15,7 +15,7 @@
<tr>
<th style="width:3em"></th>
<th>规则分组</th>
<th>规则集</th>
<th class="center">规则集</th>
<th class="three op">操作</th>
</tr>
</thead>
@@ -31,7 +31,7 @@
<span v-if="group.code.length == 0" class="ui label tiny">自定义</span>
</p>
</td>
<td>
<td class="center">
<a :href="'/servers/components/waf/group?firewallPolicyId=' + firewallPolicyId + '&type=' + type + '&groupId=' + group.id">{{group.countSets}}</a>
</td>
<td>