mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-18 23:10:25 +08:00
实现公用的IP名单
This commit is contained in:
23
web/views/@default/servers/iplists/bindHTTPFirewallPopup.js
Normal file
23
web/views/@default/servers/iplists/bindHTTPFirewallPopup.js
Normal file
@@ -0,0 +1,23 @@
|
||||
Tea.context(function () {
|
||||
this.bind = function (list) {
|
||||
this.$post("$")
|
||||
.params({
|
||||
httpFirewallPolicyId: this.httpFirewallPolicyId,
|
||||
listId: list.id
|
||||
})
|
||||
.success(function () {
|
||||
list.isSelected = true
|
||||
})
|
||||
}
|
||||
|
||||
this.unbind = function (list) {
|
||||
this.$post(".unbindHTTPFirewall")
|
||||
.params({
|
||||
httpFirewallPolicyId: this.httpFirewallPolicyId,
|
||||
listId: list.id
|
||||
})
|
||||
.success(function () {
|
||||
list.isSelected = false
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user