实现基本的监控终端管理

This commit is contained in:
GoEdgeLab
2021-09-08 19:34:51 +08:00
parent 5d2466cf00
commit 242da2d065
19 changed files with 345 additions and 12 deletions

View File

@@ -0,0 +1,31 @@
Tea.context(function () {
this.createGroup = function () {
teaweb.popup(".createPopup", {
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()
})
}
})
}
this.updateGroup = function (groupId) {
teaweb.popup(".group.updatePopup?groupId=" + groupId, {
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()
})
}
})
}
this.deleteGroup = function (groupId) {
teaweb.confirm("确定要删除此分组吗?", function () {
this.$post(".group.delete")
.params({
groupId: groupId
})
.refresh()
})
}
})