增加清空节点同步任务、清空DNS同步任务功能

This commit is contained in:
GoEdgeLab
2023-07-02 17:29:00 +08:00
parent 198139446d
commit 99c930bde7
8 changed files with 81 additions and 7 deletions

View File

@@ -65,7 +65,7 @@ Tea.context(function () {
}
this.deleteBatch = function () {
var taskIds = []
let taskIds = []
this.clusters.forEach(function (cluster) {
cluster.tasks.forEach(function (task) {
if (task.isChecked) {
@@ -85,4 +85,14 @@ Tea.context(function () {
})
})
}
this.deleteAllTasks = function () {
let that = this
teaweb.confirm("确定要清空所有的任务吗?", function () {
that.$post(".deleteAll")
.success(function () {
teaweb.reload()
})
})
}
})