forked from github/dataease
feat(frontend):数据集添加bug修复
This commit is contained in:
parent
2557402d95
commit
ef59ad96bf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user