feat(數據集): 添加非直连数据集時,默认全量同步一次

This commit is contained in:
taojinlong 2021-07-08 15:11:56 +08:00
parent d3cc82d59f
commit 7f388f1edd

View File

@ -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'
},