2020-07-22 22:19:39 +08:00
|
|
|
|
{$layout}
|
|
|
|
|
|
{$template "menu"}
|
2020-07-29 19:34:54 +08:00
|
|
|
|
<div class="margin"></div>
|
2020-07-22 22:19:39 +08:00
|
|
|
|
<form class="ui form" data-tea-action="$" data-tea-success="success">
|
2020-07-30 22:41:35 +08:00
|
|
|
|
<input type="hidden" name="grantId" :value="grantId"/>
|
2020-07-22 22:19:39 +08:00
|
|
|
|
<table class="ui table definition selectable">
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td class="title">节点名称 *</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<input type="text" name="name" maxlength="50" ref="focus"/>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>所属集群</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<select class="ui dropdown" name="clusterId" style="width:10em">
|
|
|
|
|
|
<option v-for="cluster in clusters" :value="cluster.id">{{cluster.name}}</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2020-07-30 22:41:35 +08:00
|
|
|
|
<td>SSH主机地址</td>
|
2020-07-22 22:19:39 +08:00
|
|
|
|
<td>
|
2020-07-30 22:41:35 +08:00
|
|
|
|
<input type="text" name="sshHost" maxlength="64"/>
|
|
|
|
|
|
<p class="comment">比如192.168.1.100</p>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>SSH主机端口</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<input type="text" name="sshPort" maxlength="5"/>
|
|
|
|
|
|
<p class="comment">比如22。</p>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>SSH登录认证</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<div class="ui label small" v-if="grant != null">{{grant.name}}<span class="small">({{grant.methodName}})</span> <a href="" title="删除" @click.prevent="removeGrant()"><i class="icon remove"></i></a> </div>
|
|
|
|
|
|
<div v-if="grant == null">
|
|
|
|
|
|
<a href="" @click.prevent="selectGrant()">[选择已有认证]</a> <a href="" @click.prevent="createGrant()">[添加新认证]</a>
|
|
|
|
|
|
</div>
|
2020-07-22 22:19:39 +08:00
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
<submit-btn></submit-btn>
|
|
|
|
|
|
</form>
|