mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-24 02:10:28 +08:00
增加清空节点同步任务、清空DNS同步任务功能
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user