|
@@ -77,6 +77,7 @@ export default {
|
|
|
if (res.executionByFrontend) {
|
|
|
if (res.data.datasetType === 'http') {
|
|
|
_res = await axiosFormatting(res.data)
|
|
|
+ _res = this.httpDataFormatting(res, _res)
|
|
|
}
|
|
|
if (res.data.datasetType === 'js') {
|
|
|
try {
|
|
@@ -123,6 +124,7 @@ export default {
|
|
|
if (res.executionByFrontend) {
|
|
|
if (res.data.datasetType === 'http') {
|
|
|
_res = await axiosFormatting(res.data)
|
|
|
+ _res = this.httpDataFormatting(res, _res)
|
|
|
}
|
|
|
if (res.data.datasetType === 'js') {
|
|
|
try {
|
|
@@ -154,6 +156,17 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ httpDataFormatting (chartRes, httpRes) {
|
|
|
+ let result = {}
|
|
|
+ result = {
|
|
|
+ columnData: chartRes.columnData,
|
|
|
+ data: httpRes,
|
|
|
+ success: chartRes.success
|
|
|
+
|
|
|
+ }
|
|
|
+ return result
|
|
|
+ },
|
|
|
dataFormatting (config, data) {
|
|
|
|
|
|
},
|