mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-23 18:00:27 +08:00
阶段性提交
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
.right-box {
|
||||
text-align: center;
|
||||
margin-top: 1em;
|
||||
}
|
||||
/*# sourceMappingURL=index.css.map */
|
||||
@@ -1 +1 @@
|
||||
undefined
|
||||
{"version":3,"sources":["index.less"],"names":[],"mappings":"AAAA;EACC,kBAAA;EACA,eAAA","file":"index.css"}
|
||||
@@ -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>
|
||||
13
web/views/@default/servers/server/delete/index.js
Normal file
13
web/views/@default/servers/server/delete/index.js
Normal 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")
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,4 @@
|
||||
.right-box {
|
||||
text-align: center;
|
||||
margin-top: 1em;
|
||||
}
|
||||
Reference in New Issue
Block a user