数据看板增加事件列表(商业版)

This commit is contained in:
GoEdgeLab
2021-10-14 17:29:30 +08:00
parent 73e2cb4966
commit 127a0e8471
4 changed files with 128 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
Tea.context(function () {
this.updateRead = function (logId) {
this.$post(".readEvents")
.params({
logIds: [logId]
})
.success(function () {
teaweb.reload()
})
}
this.updatePageRead = function () {
let logIds = this.logs.map(function (v) {
return v.id
})
this.$post(".readEvents")
.params({
logIds: logIds
})
.success(function () {
teaweb.reload()
})
}
})