|
|
@ -447,18 +447,23 @@ export default { |
|
|
`; |
|
|
`; |
|
|
return serviceOutput; |
|
|
return serviceOutput; |
|
|
}, |
|
|
}, |
|
|
handleModelOutput(v) { |
|
|
|
|
|
|
|
|
async getStruct() { |
|
|
var struct = ``; |
|
|
var struct = ``; |
|
|
cli |
|
|
|
|
|
|
|
|
await cli |
|
|
.post("/sql", { |
|
|
.post("/sql", { |
|
|
content: this.sqlinput, |
|
|
content: this.sqlinput, |
|
|
}) |
|
|
}) |
|
|
.then(function (response) { |
|
|
.then(function (response) { |
|
|
struct = response.data; |
|
|
struct = response.data; |
|
|
|
|
|
return struct; |
|
|
}) |
|
|
}) |
|
|
.catch(function (error) { |
|
|
.catch(function (error) { |
|
|
console.log(error); |
|
|
console.log(error); |
|
|
}); |
|
|
}); |
|
|
|
|
|
return struct; |
|
|
|
|
|
}, |
|
|
|
|
|
handleModelOutput(v) { |
|
|
|
|
|
const struct = this.getStruct(); |
|
|
console.log("struct", struct); |
|
|
console.log("struct", struct); |
|
|
const requires = v.required; |
|
|
const requires = v.required; |
|
|
const properties = v.properties; |
|
|
const properties = v.properties; |
|
|
|