Files
EdgeAdmin/web/views/@default/servers/index.html
2020-10-02 17:22:24 +08:00

40 lines
1.1 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}
{$template "menu"}
<p class="ui message" v-if="servers.length == 0">暂时还没有服务。</p>
<table class="ui table selectable" v-if="servers.length > 0">
<thead>
<tr>
<th>服务名称</th>
<th>服务类型</th>
<th>部署集群</th>
<th>运行中节点数</th>
<th>未运行节点数</th>
<th>端口</th>
<th>状态</th>
<th class="two op">操作</th>
</tr>
</thead>
<tr v-for="server in servers">
<td>{{server.name}}</td>
<td>{{server.serverTypeName}}</td>
<td>{{server.cluster.name}}</td>
<td><span class="disabled">[暂无]</span></td>
<td><span class="disabled">[暂无]</span></td>
<td>
<span v-if="server.ports.length == 0">-</span>
<div v-for="port in server.ports">
<div class="ui label tiny" style="margin-bottom:0.5em">{{port.portRange}}<span class="small">{{port.protocol}}</span></div>
</div>
</td>
<td>
<span class="disabled">[暂无]</span>
</td>
<td>
<a :href="'/servers/server?serverId=' + server.id">详情</a>
</td>
</tr>
</table>
<div class="page" v-html="page"></div>