可以在运行日志页面中删除使用关键词匹配的运行日志

This commit is contained in:
刘祥超
2023-03-09 16:20:09 +08:00
parent a80e54e0b3
commit 395aa665d7
8 changed files with 107 additions and 2 deletions

View File

@@ -82,4 +82,23 @@ Tea.context(function () {
})
})
}
this.deleteLogs = function () {
teaweb.confirm("确定要删除当前关键词\"" + this.searchedKeyword + "\"匹配的" + this.countLogs + "个运行日志?", function () {
this.$post(".deleteAll")
.params({
dayFrom: this.dayFrom,
dayTo: this.dayTo,
keyword: this.keyword,
level: this.level,
type: this.type,
tag: this.tag,
clusterId: this.clusterId,
nodeId: this.nodeId
})
.success(function () {
teaweb.reload()
})
})
}
})