Files
EdgeAdmin/web/views/@default/servers/accesslogs/index.js

20 lines
458 B
JavaScript
Raw Normal View History

2021-07-29 16:51:22 +08:00
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("保存成功")
})
})
}
})