实现基本的区域监控终端管理功能

This commit is contained in:
GoEdgeLab
2021-09-05 11:10:07 +08:00
parent 666c987c17
commit 650b9f6b91
16 changed files with 235 additions and 9 deletions

View File

@@ -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()
})
})
})
}
})