可以修复单页或者全部服务日志

This commit is contained in:
刘祥超
2022-03-23 17:31:53 +08:00
parent c47b2973b0
commit a25938022f
11 changed files with 144 additions and 138 deletions

View File

@@ -46,6 +46,7 @@
</div>
</form>
<!-- 未读操作 -->
<div v-if="type == 'unread'">
<div class="ui divider" style="margin-bottom: 0"></div>
<second-menu v-if="logs.length > 0">
@@ -54,7 +55,17 @@
</second-menu>
</div>
<p class="comment" v-if="logs.length == 0">暂时还没有日志。</p>
<!-- 未修复操作 -->
<div v-if="type == 'needFix'">
<div class="ui divider" style="margin-bottom: 0"></div>
<second-menu v-if="logs.length > 0">
<a href="" class="item" @click.prevent="fixPageLogs()">[本页已修复]</a>
<a href="" class="item" @click.prevent="fixAllLogs()">[全部已修复]</a>
</second-menu>
<p class="ui message" v-if="logs.length > 0">已合并重复内容,当前显示数据和总数量可能不一致。</p>
</div>
<p class="comment" v-if="logs.length == 0">暂时还没有<span v-if="type == 'unread'">未读</span><span v-if="type == 'needFix'">需修复</span>日志。</p>
<table class="ui table selectable celled" v-if="logs.length > 0">
<thead>
@@ -62,7 +73,7 @@
<th>集群</th>
<th>节点</th>
<th>信息</th>
<th class="one op">操作</th>
<th style="width: 5em">操作</th>
</tr>
</thead>
<tr v-for="log in logs">
@@ -72,7 +83,8 @@
<node-log-row :v-log="log" :v-keyword="keyword"></node-log-row>
</td>
<td>
<a href="" @click.prevent="updateRead(log.id)" v-if="!log.isRead"></a>
<a href="" v-if="!log.isFixed" @click.prevent="fixLog(log.id)">修复</a>
<a href="" @click.prevent="updateRead(log.id)" v-if="log.isFixed && !log.isRead">已读</a>
</td>
</tr>
</table>