Files
EdgeAdmin/web/views/@default/servers/components/waf/index.js
2020-10-06 21:02:37 +08:00

25 lines
552 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Tea.context(function () {
// 创建策略
this.createPolicy = function () {
teaweb.popup("/servers/components/waf/createPopup", {
height: "27em",
callback: function () {
teaweb.success("保存成功", function () {
window.location.reload()
})
}
})
}
// 删除策略
this.deletePolicy = function (policyId) {
let that = this
teaweb.confirm("确定要删除此WAF策略吗", function () {
that.$post("/servers/components/waf/delete")
.params({
firewallPolicyId: policyId
})
.refresh()
})
}
})