Files
EdgeAdmin/web/views/@default/servers/addPortPopup.html

28 lines
1.3 KiB
HTML
Raw Normal View History

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">
2021-10-10 16:30:21 +08:00
<input type="hidden" name="supportRange" :value="supportRange ? 1 : 0"/>
2020-08-21 12:32:16 +08:00
<table class="ui table definition selectable">
<tr>
<td>网络协议</td>
<td>
<select class="ui dropdown auto-width" name="protocol" v-model="protocol" @change="changeProtocol">
<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-10-10 16:30:21 +08:00
<p class="comment">可以是一个数字端口通常不超过65535也可以是"地址:端口"的方式。<span v-if="supportRange">支持端口范围,形式为<code-label>port1-port2</code-label></span>
2021-06-28 21:09:22 +08:00
<span v-if="from.length == 0 && protocol == 'http'">HTTP常用端口为<a href="" title="点击添加" @click.prevent="addPort('80')">80</a></span>
<span v-if="from.length == 0 && protocol == 'https'">HTTPS常用端口为<a href="" title="点击添加" @click.prevent="addPort('443')">443</a></span>
</p>
2020-08-21 12:32:16 +08:00
</td>
</tr>
</table>
<submit-btn></submit-btn>
</form>