mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-11 00:40:26 +08:00
域名服务增加访问日志
This commit is contained in:
32
web/views/@default/ns/clusters/accessLogs/index.js
Normal file
32
web/views/@default/ns/clusters/accessLogs/index.js
Normal file
@@ -0,0 +1,32 @@
|
||||
Tea.context(function () {
|
||||
let that = this
|
||||
this.accessLogs.forEach(function (accessLog) {
|
||||
// 区域
|
||||
if (typeof (that.regions[accessLog.remoteAddr]) == "string") {
|
||||
accessLog.region = that.regions[accessLog.remoteAddr]
|
||||
} else {
|
||||
accessLog.region = ""
|
||||
}
|
||||
|
||||
// 节点
|
||||
if (typeof (that.nodes[accessLog.nsNodeId]) != "undefined") {
|
||||
accessLog["node"] = that.nodes[accessLog.nsNodeId]
|
||||
} else {
|
||||
accessLog["node"] = null
|
||||
}
|
||||
|
||||
// 域名
|
||||
if (typeof (that.domains[accessLog.nsDomainId]) != "undefined") {
|
||||
accessLog["domain"] = that.domains[accessLog.nsDomainId]
|
||||
} else {
|
||||
accessLog["domain"] = null
|
||||
}
|
||||
})
|
||||
|
||||
this.$delay(function () {
|
||||
let that = this
|
||||
teaweb.datepicker("day-input", function (v) {
|
||||
that.day = v
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user