Files
EdgeAdmin/web/views/@default/dns/issues/index.html
2021-07-31 22:23:07 +08:00

50 lines
1.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{$layout}
<first-menu>
<span class="item" v-if="issues.length > 0"><span class="red">{{issues.length}}</span>个问题</span>
<span class="item" v-if="issues.length > 0">|</span>
<a href="/dns/issues" title="刷新" class="item" @click.prevent="reload">刷新</a>
<span class="item">|</span>
<span class="item"><tip-icon content="这里是一个全局的DNS解析问题发现页方便我们诊断并修复问题。"></tip-icon></span>
</first-menu>
<div v-if="isRequesting">
<div class="margin"></div>
正在检查系统问题,请耐心等待...
</div>
<div v-if="issues.length == 0 && !isRequesting">
<div class="margin"></div>
<p class="comment">暂时没有发现问题。</p>
</div>
<table class="ui table selectable celled" v-if="issues.length > 0">
<thead>
<tr>
<th style="width: 50%">问题对象</th>
<th>问题描述</th>
<th class="two op">操作</th>
</tr>
</thead>
<tr v-for="issue in issues">
<td>
<div v-if="issue.type == 'cluster'">
集群 "{{issue.target}}" <link-icon :href="'/clusters/cluster?clusterId=' + issue.targetId"></link-icon>
</div>
<div v-if="issue.type == 'node'">
集群 "{{issue.params.clusterName}}" 节点 "{{issue.target}}" <link-icon :href="'/clusters/cluster/node?clusterId=' + issue.params.clusterId + '&nodeId=' + issue.targetId"></link-icon>
</div>
</td>
<td>
<span>{{issue.description}}</span>
</td>
<td>
<div v-if="issue.type == 'cluster'">
<link-red @click.prevent="updateCluster(issue.targetId)">修复</link-red>
</div>
<div v-if="issue.type == 'node'">
<link-red @click.prevent="updateNode(issue.params.clusterId, issue.targetId)">修复</link-red>
</div>
</td>
</tr>
</table>