阶段性提交

This commit is contained in:
GoEdgeLab
2020-09-13 20:37:07 +08:00
parent 124cbd3302
commit e3501a5a68
155 changed files with 1317 additions and 13193 deletions

View File

@@ -0,0 +1,5 @@
.right-box {
text-align: center;
margin-top: 1em;
}
/*# sourceMappingURL=index.css.map */

View File

@@ -1 +1 @@
undefined
{"version":3,"sources":["index.less"],"names":[],"mappings":"AAAA;EACC,kBAAA;EACA,eAAA","file":"index.css"}

View File

@@ -2,5 +2,5 @@
{$template "/left_menu"}
<div class="right-box">
<div class="ui message">此功能暂未开放,敬请期待。</div>
<button class="ui button red" type="button" @click.prevent="deleteServer(serverId)">删除当前服务</button>
</div>

View File

@@ -0,0 +1,13 @@
Tea.context(function () {
this.deleteServer = function (serverId) {
teaweb.confirm("确定要删除当前服务吗?", function () {
this.$post("$")
.params({
"serverId": serverId
})
.success(function () {
teaweb.successURL("删除成功", "/servers")
})
})
}
})

View File

@@ -0,0 +1,4 @@
.right-box {
text-align: center;
margin-top: 1em;
}

View File

@@ -2,5 +2,43 @@
{$template "/left_menu"}
<div class="right-box">
<div class="ui message">此功能暂未开放,敬请期待。</div>
<form class="ui form" data-tea-action="$" data-tea-success="success">
<input type="hidden" name="serverId" :value="server.id"/>
<table class="ui table selectable definition">
<tr>
<td class="title">服务名称 *</td>
<td>
<input type="text" name="name" maxlength="60" ref="focus" v-model="server.name"/>
</td>
</tr>
<tr>
<td>部署的集群 *</td>
<td>
<select class="ui dropdown auto-width" name="clusterId" v-model="server.clusterId">
<option v-for="cluster in clusters" :value="cluster.id">{{cluster.name}}</option>
</select>
</td>
</tr>
<tr>
<td>服务类型 *</td>
<td>
{{typeName}}
</td>
</tr>
<tr>
<td colspan="2"><more-options-indicator></more-options-indicator></td>
</tr>
<tbody v-show="moreOptionsVisible">
<tr>
<td>描述</td>
<td>
<textarea name="description" rows="3" v-model="server.description"></textarea>
</td>
</tr>
</tbody>
</table>
<submit-btn></submit-btn>
</form>
</div>

View File

@@ -0,0 +1,3 @@
Tea.context(function () {
this.success = NotifyReloadSuccess("保存成功")
})

View File

@@ -3,5 +3,17 @@
{$template "/left_menu"}
<div class="right-box">
<p class="ui message">此功能暂未开放,敬请期待。</p>
<form class="ui form" data-tea-action="$" data-tea-success="success">
<input type="hidden" name="serverId" :value="serverId"/>
<input type="hidden" name="serverType" :value="serverType"/>
<table class="ui table selectable definition">
<tr>
<td class="title">绑定端口 *</td>
<td>
<network-addresses-box :v-server-type="serverType" :v-addresses="addresses"></network-addresses-box>
</td>
</tr>
</table>
<submit-btn></submit-btn>
</form>
</div>

View File

@@ -0,0 +1,3 @@
Tea.context(function () {
this.success = NotifyReloadSuccess("保存成功")
})