实现基本的访问日志策略

This commit is contained in:
GoEdgeLab
2021-07-29 16:51:22 +08:00
parent 6703d631a9
commit 953b880456
28 changed files with 1397 additions and 87 deletions

View File

@@ -345,17 +345,19 @@ Vue.component("metric-chart", {
]
})
// IP相关操作
if (this.item.keys != null && this.item.keys.$contains("${remoteAddr}")) {
let that = this
chart.on("click", function (args) {
let index = that.item.keys.$indexesOf("${remoteAddr}")[0]
let value = that.stats[args.dataIndex].keys[index]
teaweb.popup("/servers/ipbox?ip=" + value, {
width: "50em",
height: "30em"
if (this.item.keys != null) {
// IP相关操作
if (this.item.keys.$contains("${remoteAddr}")) {
let that = this
chart.on("click", function (args) {
let index = that.item.keys.$indexesOf("${remoteAddr}")[0]
let value = that.stats[args.dataIndex].keys[index]
teaweb.popup("/servers/ipbox?ip=" + value, {
width: "50em",
height: "30em"
})
})
})
}
}
},
renderTable: function (chart) {