实现WAF策略部分功能

This commit is contained in:
刘祥超
2020-10-06 21:02:37 +08:00
parent d80d44c824
commit 088b2b36a6
29 changed files with 727 additions and 20 deletions

View File

@@ -0,0 +1,25 @@
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()
})
}
})