mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-13 11:53:34 +08:00
增加ip2region库管理
This commit is contained in:
24
web/views/@default/servers/components/ip-library/index.js
Normal file
24
web/views/@default/servers/components/ip-library/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
Tea.context(function () {
|
||||
this.upload = function () {
|
||||
teaweb.popup("/servers/components/ip-library/uploadPopup", {
|
||||
callback: function () {
|
||||
teaweb.success("上传成功", function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
this.deleteLibrary = function (libraryId) {
|
||||
let that = this
|
||||
teaweb.confirm("确定要删除此IP库吗?", function () {
|
||||
that.$post(".delete")
|
||||
.params({
|
||||
"libraryId": libraryId
|
||||
})
|
||||
.success(function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user