mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-07 21:50:25 +08:00
实现基本的区域监控终端管理功能
This commit is contained in:
@@ -1,9 +1,25 @@
|
||||
Tea.context(function () {
|
||||
this.createReporter = function () {
|
||||
teaweb.popup(".createPopup", function () {
|
||||
teaweb.success("保存成功", function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
teaweb.popup(".createPopup", {
|
||||
callback: function () {
|
||||
teaweb.success("保存成功", function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
this.deleteReporter = function (reporterId) {
|
||||
teaweb.confirm("确定要删除此终端吗?", function () {
|
||||
this.$post(".reporter.delete")
|
||||
.params({
|
||||
reporterId: reporterId
|
||||
})
|
||||
.success(function () {
|
||||
teaweb.success("删除成功", function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user