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