实现DNS节点远程安装

This commit is contained in:
GoEdgeLab
2021-08-11 20:59:58 +08:00
parent 8349a4a279
commit fea5247c84
10 changed files with 185 additions and 26 deletions

View File

@@ -0,0 +1,31 @@
{$layout "layout_popup"}
<h3>修改节点"{{node.name}}"的SSH登录信息</h3>
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
<input type="hidden" name="nodeId" :value="node.id"/>
<input type="hidden" name="loginId" :value="loginId"/>
<table class="ui table definition">
<tr>
<td class="title">SSH主机地址 *</td>
<td>
<input type="text" name="sshHost" maxlength="64" v-model="params.host" ref="focus"/>
<p class="comment">比如192.168.1.100</p>
</td>
</tr>
<tr>
<td>SSH主机端口 *</td>
<td>
<input type="text" name="sshPort" maxlength="5" v-model="params.port" style="width:6em"/>
<p class="comment">比如22。</p>
</td>
</tr>
<tr>
<td>SSH登录认证 *</td>
<td>
<grant-selector :v-grant="grant"></grant-selector>
</td>
</tr>
</table>
<submit-btn></submit-btn>
</form>

View File

@@ -0,0 +1,5 @@
Tea.context(function () {
if (this.params.port <= 0) {
this.params.port = 22
}
})