提交 7f388f1e authored 作者: taojinlong's avatar taojinlong

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

上级 d3cc82d5
...@@ -189,7 +189,7 @@ export default { ...@@ -189,7 +189,7 @@ export default {
columns: [], columns: [],
buttons: [ 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 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 { ...@@ -422,6 +422,9 @@ export default {
cronChange(val) { cronChange(val) {
this.taskForm.cron = val this.taskForm.cron = val
}, },
disableEdit(task) {
return task.rate === 'SIMPLE'
},
disableExec(task) { disableExec(task) {
return task.status === 'Stopped' return task.status === 'Stopped'
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论