mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-26 04:06:34 +08:00
调整界面
This commit is contained in:
5
web/views/@default/clusters/cluster/delete.css
Normal file
5
web/views/@default/clusters/cluster/delete.css
Normal file
@@ -0,0 +1,5 @@
|
||||
.buttons-box {
|
||||
text-align: center;
|
||||
margin-top: 2em;
|
||||
}
|
||||
/*# sourceMappingURL=delete.css.map */
|
||||
1
web/views/@default/clusters/cluster/delete.css.map
Normal file
1
web/views/@default/clusters/cluster/delete.css.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["delete.less"],"names":[],"mappings":"AAAA;EACC,kBAAA;EACA,eAAA","file":"delete.css"}
|
||||
5
web/views/@default/clusters/cluster/delete.html
Normal file
5
web/views/@default/clusters/cluster/delete.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{$layout}
|
||||
|
||||
<div class="buttons-box">
|
||||
<button class="ui button red" type="button" @click.prevent="deleteCluster(clusterId)">删除当前集群</button>
|
||||
</div>
|
||||
@@ -2,11 +2,13 @@ Tea.context(function () {
|
||||
this.deleteCluster = function (clusterId) {
|
||||
let that = this
|
||||
teaweb.confirm("确定要删除此集群吗?", function () {
|
||||
that.$post("/clusters/delete")
|
||||
that.$post("/clusters/cluster/delete")
|
||||
.params({
|
||||
clusterId: clusterId
|
||||
})
|
||||
.refresh()
|
||||
.success(function () {
|
||||
window.location = "/clusters"
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
4
web/views/@default/clusters/cluster/delete.less
Normal file
4
web/views/@default/clusters/cluster/delete.less
Normal file
@@ -0,0 +1,4 @@
|
||||
.buttons-box {
|
||||
text-align: center;
|
||||
margin-top: 2em;
|
||||
}
|
||||
@@ -28,8 +28,7 @@
|
||||
<span v-else class="disabled">N</span>
|
||||
</td>
|
||||
<td>
|
||||
<a :href="'/clusters/cluster?clusterId=' + cluster.id">详情</a>
|
||||
<a href="" @click.prevent="deleteCluster(cluster.id)">删除</a>
|
||||
<a :href="'/clusters/cluster?clusterId=' + cluster.id">详情</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user