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

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

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