forked from github/dataease
feat(數據集): 添加非直连数据集時,默认全量同步一次
This commit is contained in:
parent
d3cc82d59f
commit
7f388f1edd
@ -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'
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user