mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-21 08:40:25 +08:00
25 lines
533 B
JavaScript
25 lines
533 B
JavaScript
Tea.context(function () {
|
|
this.createReporter = function () {
|
|
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()
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}) |