自动更新缓存任务执行状况/优化缓存相关文字提示

This commit is contained in:
刘祥超
2022-06-15 15:47:43 +08:00
parent a1ad56aebb
commit 27e3cdffb1
13 changed files with 85 additions and 47 deletions

View File

@@ -1,4 +1,8 @@
Tea.context(function () {
this.$delay(function () {
this.reload()
})
this.deleteTask = function (taskId) {
teaweb.confirm("确定要删除此任务吗?", function () {
this.$post(".deleteTask")
@@ -20,4 +24,19 @@ Tea.context(function () {
.refresh()
})
}
this.reload = function () {
this.$post("$")
.params({
taskId: this.task.id
})
.success(function (resp) {
this.task = resp.data.task
})
.done(function () {
this.$delay(function () {
this.reload()
}, 10000)
})
}
})