提交 ef59ad96 authored 作者: junjie's avatar junjie

feat(frontend):数据集添加bug修复

上级 2557402d
...@@ -185,7 +185,8 @@ export default { ...@@ -185,7 +185,8 @@ export default {
dataSourceId: null, dataSourceId: null,
type: 'excel', type: 'excel',
mode: parseInt(this.mode), mode: parseInt(this.mode),
info: '{"data":"' + this.path + '"}' // info: '{"data":"' + this.path + '"}',
info: JSON.stringify({ data: this.path })
} }
} else { } else {
table = { table = {
...@@ -195,7 +196,8 @@ export default { ...@@ -195,7 +196,8 @@ export default {
dataSourceId: null, dataSourceId: null,
type: 'excel', type: 'excel',
mode: parseInt(this.mode), mode: parseInt(this.mode),
info: '{"data":"' + this.path + '"}', // info: '{"data":"' + this.path + '"}',
info: JSON.stringify({ data: this.path }),
editType: this.param.editType ? this.param.editType : 0 editType: this.param.editType ? this.param.editType : 0
} }
} }
......
...@@ -219,7 +219,8 @@ export default { ...@@ -219,7 +219,8 @@ export default {
post('/dataset/table/sqlPreview', { post('/dataset/table/sqlPreview', {
dataSourceId: this.dataSource, dataSourceId: this.dataSource,
type: 'sql', type: 'sql',
info: '{"sql":"' + this.sql + '"}' // info: '{"sql":"' + this.sql + '"}',
info: JSON.stringify({ sql: this.sql })
}).then(response => { }).then(response => {
this.fields = response.data.fields this.fields = response.data.fields
this.data = response.data.data this.data = response.data.data
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论