mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-13 20:00:25 +08:00
24 lines
747 B
JavaScript
24 lines
747 B
JavaScript
Tea.context(function () {
|
|
this.createRecipient = function () {
|
|
teaweb.popup(Tea.url(".createPopup"), {
|
|
height: "27em",
|
|
callback: function () {
|
|
teaweb.success("保存成功", function () {
|
|
teaweb.reload()
|
|
})
|
|
}
|
|
})
|
|
}
|
|
|
|
this.deleteRecipient = function (recipientId) {
|
|
teaweb.confirm("确定要删除此接收媒介吗?", function () {
|
|
this.$post(".delete")
|
|
.params({recipientId: recipientId})
|
|
.success(function () {
|
|
teaweb.success("删除成功", function () {
|
|
teaweb.reload()
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}) |