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

This commit is contained in:
junjie 2021-06-09 16:05:15 +08:00
parent 2557402d95
commit ef59ad96bf
2 changed files with 6 additions and 3 deletions

View File

@ -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
}
}

View File

@ -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