mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-19 15:30:25 +08:00
20 lines
458 B
JavaScript
20 lines
458 B
JavaScript
Tea.context(function () {
|
|
this.createPolicy = function () {
|
|
teaweb.popup(Tea.url(".createPopup", {}), {
|
|
height: "24em",
|
|
callback: NotifyReloadSuccess("保存成功")
|
|
})
|
|
}
|
|
|
|
this.deletePolicy = function (policyId) {
|
|
teaweb.confirm("确定要删除这个日志策略吗?", function () {
|
|
this.$post(".delete")
|
|
.params({
|
|
policyId: policyId
|
|
})
|
|
.success(function () {
|
|
teaweb.successRefresh("保存成功")
|
|
})
|
|
})
|
|
}
|
|
}) |