mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-25 19:56:35 +08:00
29 lines
515 B
JavaScript
29 lines
515 B
JavaScript
Tea.context(function () {
|
|
this.$delay(function () {
|
|
teaweb.datepicker("day-from-picker")
|
|
teaweb.datepicker("day-to-picker")
|
|
})
|
|
|
|
this.updateRead = function (logId) {
|
|
this.$post(".readLogs")
|
|
.params({
|
|
logIds: [logId]
|
|
})
|
|
.success(function () {
|
|
teaweb.reload()
|
|
})
|
|
}
|
|
|
|
this.updatePageRead = function () {
|
|
let logIds = this.logs.map(function (v) {
|
|
return v.id
|
|
})
|
|
this.$post(".readLogs")
|
|
.params({
|
|
logIds: logIds
|
|
})
|
|
.success(function () {
|
|
teaweb.reload()
|
|
})
|
|
}
|
|
}) |