提交 436770fe authored 作者: taojinlong's avatar taojinlong

fix(数据集): 先选择定时同步再选择数据库可实现不支持定时同步的数据库定时同步

上级 4716cde0
...@@ -100,6 +100,7 @@ export default { ...@@ -100,6 +100,7 @@ export default {
for (let i = 0; i < this.options.length; i++) { for (let i = 0; i < this.options.length; i++) {
if (this.options[i].id === val) { if (this.options[i].id === val) {
this.selectedDatasource = this.options[i] this.selectedDatasource = this.options[i]
this.mode = '0'
} }
} }
} }
...@@ -133,8 +134,6 @@ export default { ...@@ -133,8 +134,6 @@ export default {
}) })
}, },
save() { save() {
// console.log(this.checkTableList);
// console.log(this.scene);
let ds = {} let ds = {}
this.options.forEach(ele => { this.options.forEach(ele => {
if (ele.id === this.dataSource) { if (ele.id === this.dataSource) {
...@@ -158,7 +157,6 @@ export default { ...@@ -158,7 +157,6 @@ export default {
}) })
}) })
post('/dataset/table/batchAdd', tables).then(response => { post('/dataset/table/batchAdd', tables).then(response => {
// this.$store.dispatch('dataset/setSceneData', new Date().getTime())
this.$emit('saveSuccess', tables[0]) this.$emit('saveSuccess', tables[0])
this.cancel() this.cancel()
}) })
...@@ -166,7 +164,6 @@ export default { ...@@ -166,7 +164,6 @@ export default {
cancel() { cancel() {
this.dataReset() this.dataReset()
// this.$router.push('/dataset/home')
this.$emit('switchComponent', { name: '' }) this.$emit('switchComponent', { name: '' })
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论