2020-10-25 21:27:28 +08:00
|
|
|
{$layout}
|
|
|
|
|
{$template "menu"}
|
|
|
|
|
|
2021-05-23 21:12:52 +08:00
|
|
|
|
|
|
|
|
<!-- 搜索表单 -->
|
|
|
|
|
<form class="ui form" method="get" action="/clusters/grants">
|
|
|
|
|
<div class="margin"></div>
|
|
|
|
|
<div class="ui fields inline">
|
|
|
|
|
<div class="ui field">
|
|
|
|
|
<input type="text" name="keyword" placeholder="名称、用户名等..." v-model="keyword"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ui field">
|
|
|
|
|
<button class="ui button" type="submit">搜索</button>
|
2021-09-12 20:21:32 +08:00
|
|
|
|
|
|
|
|
<a :href="Tea.url('.')" v-if="keyword.length > 0">[清除条件]</a>
|
2021-05-23 21:12:52 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<!-- SSH认证列表 -->
|
2020-10-25 21:27:28 +08:00
|
|
|
<div class="ui message" v-if="grants.length == 0">暂时还没有认证信息。</div>
|
|
|
|
|
|
2020-11-16 13:03:45 +08:00
|
|
|
<table class="ui table selectable celled" v-if="grants.length > 0">
|
2020-10-25 21:27:28 +08:00
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>名称</th>
|
|
|
|
|
<th>类型</th>
|
2021-05-23 21:12:52 +08:00
|
|
|
<th>用户名</th>
|
2020-11-21 15:53:04 +08:00
|
|
|
<th class="center width5">集群数</th>
|
|
|
|
|
<th class="center width5">节点数</th>
|
2020-10-25 21:27:28 +08:00
|
|
|
<th class="two op">操作</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tr v-for="grant in grants">
|
2021-08-25 11:17:24 +08:00
|
|
|
<td><a :href="'/clusters/grants/grant?grantId=' + grant.id"><keyword :v-word="keyword">{{grant.name}}</keyword></a></td>
|
2020-10-25 21:27:28 +08:00
|
|
|
<td>
|
2020-11-21 15:53:04 +08:00
|
|
|
<span class="ui label tiny basic">{{grant.method.name}}</span>
|
2020-10-25 21:27:28 +08:00
|
|
|
</td>
|
2021-05-23 21:12:52 +08:00
|
|
|
<td>
|
|
|
|
|
<span v-if="grant.username.length > 0">{{grant.username}}</span>
|
|
|
|
|
<span v-else class="disabled">-</span>
|
|
|
|
|
</td>
|
2020-11-16 13:03:45 +08:00
|
|
|
<td class="center">
|
2020-10-25 21:27:28 +08:00
|
|
|
<span v-if="grant.countClusters > 0">{{grant.countClusters}}</span>
|
|
|
|
|
<span v-else class="disabled">0</span>
|
|
|
|
|
</td>
|
2020-11-16 13:03:45 +08:00
|
|
|
<td class="center">
|
2020-10-25 21:27:28 +08:00
|
|
|
<span v-if="grant.countNodes > 0">{{grant.countNodes}}</span>
|
|
|
|
|
<span v-else class="disabled">0</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a :href="'/clusters/grants/grant?grantId=' + grant.id">详情</a> <a href="" @click.prevent="deleteGrant(grant.id)">删除</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<div class="page" v-html="page"></div>
|