Files
EdgeAdmin/web/views/@default/servers/server/log/history.js

17 lines
460 B
JavaScript
Raw Normal View History

Tea.context(function () {
2021-01-13 17:00:09 +08:00
this.$delay(function () {
let that = this
teaweb.datepicker("day-input", function (day) {
that.day = day
})
})
let that = this
this.accessLogs.forEach(function (accessLog) {
if (typeof (that.regions[accessLog.remoteAddr]) == "string") {
accessLog.region = that.regions[accessLog.remoteAddr]
} else {
accessLog.region = ""
}
})
})