|
|
|
@ -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 {
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// http前台代理需要对返回的数据进行重新组装
|
|
|
|
|
httpDataFormatting (chartRes, httpRes) {
|
|
|
|
|
let result = {}
|
|
|
|
|
result = {
|
|
|
|
|
columnData: chartRes.columnData,
|
|
|
|
|
data: httpRes,
|
|
|
|
|
success: chartRes.success
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return result
|
|
|
|
|
},
|
|
|
|
|
dataFormatting (config, data) {
|
|
|
|
|
// 覆盖
|
|
|
|
|
},
|
|
|
|
|