diff --git a/frontend/src/views/system/task/DatasetTaskList.vue b/frontend/src/views/system/task/DatasetTaskList.vue index c938a3119a..c5c8e8b244 100644 --- a/frontend/src/views/system/task/DatasetTaskList.vue +++ b/frontend/src/views/system/task/DatasetTaskList.vue @@ -189,7 +189,7 @@ export default { columns: [], buttons: [ { - label: this.$t('commons.edit'), icon: 'el-icon-edit', type: 'primary', click: this.addTask + label: this.$t('commons.edit'), icon: 'el-icon-edit', type: 'primary', click: this.addTask, disabled: this.disableEdit }, { label: this.$t('dataset.task.exec'), icon: 'el-icon-video-play', type: 'success', click: this.execTask, disabled: this.disableExec @@ -422,6 +422,9 @@ export default { cronChange(val) { this.taskForm.cron = val }, + disableEdit(task) { + return task.rate === 'SIMPLE' + }, disableExec(task) { return task.status === 'Stopped' },