IP名单增加代号管理

This commit is contained in:
GoEdgeLab
2024-05-05 14:08:32 +08:00
parent b4bea60d3b
commit c4d45456b8
8 changed files with 79 additions and 3 deletions

View File

@@ -11,6 +11,13 @@
<input type="text" name="name" maxlength="100" ref="focus"/>
</td>
</tr>
<tr>
<td>代号</td>
<td>
<input type="text" name="code" maxlength="100"/>
<p class="comment">可选参数,只能是英文字母、数字、中划线、下划线的组合。</p>
</td>
</tr>
<tr>
<td>类型</td>
<td>

View File

@@ -8,6 +8,17 @@
{{list.name}}
</td>
</tr>
<tr>
<td>ID</td>
<td>{{list.id}}</td>
</tr>
<tr>
<td>代号</td>
<td>
<span v-if="list.code.length > 0">{{list.code}}</span>
<span v-else class="disabled">没有设置</span>
</td>
</tr>
<tr>
<td>类型</td>
<td>

View File

@@ -1,7 +1,7 @@
Tea.context(function () {
this.createList = function () {
teaweb.popup(Tea.url(".createPopup", {type: this.type}), {
height: "24em",
height: "30em",
callback: function (resp) {
teaweb.success("保存成功", function () {
window.location = "/servers/iplists/lists?type=" + resp.data.list.type

View File

@@ -11,6 +11,13 @@
<input type="text" name="name" maxlength="100" ref="focus" v-model="list.name"/>
</td>
</tr>
<tr>
<td>代号</td>
<td>
<input type="text" name="code" maxlength="100" v-model="list.code"/>
<p class="comment">可选参数,只能是英文字母、数字、中划线、下划线的组合。</p>
</td>
</tr>
<tr>
<td>类型</td>
<td>