2020-08-21 12:32:16 +08:00
|
|
|
|
{$layout "layout_popup"}
|
|
|
|
|
|
|
2020-10-11 10:51:13 +08:00
|
|
|
|
<h3 v-if="!isUpdating">添加端口绑定</h3>
|
|
|
|
|
|
<h3 v-if="isUpdating">修改端口绑定</h3>
|
2020-11-10 12:47:24 +08:00
|
|
|
|
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
|
2020-08-21 12:32:16 +08:00
|
|
|
|
<table class="ui table definition selectable">
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>网络协议</td>
|
|
|
|
|
|
<td>
|
2021-05-10 21:13:09 +08:00
|
|
|
|
<select class="ui dropdown auto-width" name="protocol" v-model="protocol">
|
|
|
|
|
|
<option v-for="p in protocols" :value="p.code">{{p.name}}</option>
|
2020-08-21 12:32:16 +08:00
|
|
|
|
</select>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2021-01-27 11:53:42 +08:00
|
|
|
|
<td class="title">端口 *</td>
|
2020-08-21 12:32:16 +08:00
|
|
|
|
<td>
|
2020-10-11 10:51:13 +08:00
|
|
|
|
<input type="text" name="address" ref="focus" v-model="address"/>
|
2021-05-10 21:13:09 +08:00
|
|
|
|
<p class="comment">可以是一个数字端口(通常不超过65535),也可以是"地址:端口"的方式。
|
|
|
|
|
|
<span v-if="protocol == 'http'">HTTP常用端口为80。</span>
|
|
|
|
|
|
<span v-if="protocol == 'https'">HTTPS常用端口为443。</span>
|
|
|
|
|
|
</p>
|
2020-08-21 12:32:16 +08:00
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
<submit-btn></submit-btn>
|
|
|
|
|
|
</form>
|