feat(frontend): 数据集 定时任务 管理

This commit is contained in:
junjie 2021-03-08 10:05:09 +08:00
parent 7965552518
commit 64f78e9b9e

View File

@ -298,6 +298,11 @@ export default {
// })
},
deleteTask(task) {
this.$confirm(this.$t('dataset.confirm_delete'), this.$t('dataset.tips'), {
confirmButtonText: this.$t('dataset.confirm'),
cancelButtonText: this.$t('dataset.cancel'),
type: 'warning'
}).then(() => {
post('/dataset/task/delete/' + task.id, null).then(response => {
this.$message({
message: this.$t('dataset.delete_success'),
@ -307,6 +312,8 @@ export default {
this.resetTaskForm()
this.listTask()
})
}).catch(() => {
})
},
closeTask() {
this.update_task = false