优化节点日志:可以批量设置服务错误日志为已修复等

This commit is contained in:
GoEdgeLab
2021-11-30 16:43:44 +08:00
parent fbac9c4578
commit bcb079e902
7 changed files with 54 additions and 10 deletions

View File

@@ -55,7 +55,28 @@ Tea.context(function () {
teaweb.confirm("确定要关闭此错误提示吗?", function () {
that.$post(".fixLog")
.params({
logId: logId
logIds: logId
})
.success(function () {
teaweb.reload()
})
})
}
this.fixPageLogs = function () {
let logIds = this.errorLogs.map(function (v) {
return v.id
})
if (logIds.length == 0) {
teaweb.reload()
return
}
let that = this
teaweb.confirm("确定要关闭此页错误提示吗?", function () {
that.$post(".fixLog")
.params({
logIds: logIds
})
.success(function () {
teaweb.reload()