接口说明:

    根据报告 id 找到报告中图表的数据

    基本信息:

    属性
    API /api/dash/report/getData
    Method POST

    请求参数:

    字段名称 参数类型 参数说明
    token String 鉴权token,该用户必须有对应报告的预览权限
    reportId Number 报告id
    limit Number 单个图表最大数据行数限制。不传默认2万行
    type String ‘report’-报告,返回整个报告中的图表数据; ‘dashboard’-页面,需额外传参数 dashboardIds,此时只返回对应的页面中的图表数据
    dashboardIds Arr(Number) 页面id。这些页面需要在 reportId 对应的报告中
    cache Bool 是否使用缓存数据。默认为false
    {
        "token": "1503575355359c4fdea8ec1683ed10edd91ae",
        "reportId":6177,
          "dashboardIds": [12255, 10962],
        "type": "dashboards",
        "cache": true
    }

    成功数据返回:

    {
        "code": 200,
        "result": [
            {
                "normalSheetData": [  // 图表数据
                    [
                        "计算字段1"
                    ],
                    [
                        0
                    ]
                ],
                "dashboardTitle": "页面 2", // 页面名称
                "componentTitle": "指标看板" // 图表名称
            },
            {
                "normalSheetData": [
                    [
                        "细分",
                        "利润"
                    ],
                    [
                        "公司",
                        684036.7
                    ],
                    [
                        "消费者",
                        1059953.47
                    ],
                    [
                        "小型企业",
                        412569.35
                    ]
                ],
                "dashboardTitle": "页面 1",
                "componentTitle": "利润(按细分划分)"
            }
        ],
        "logPath": "http://127.0.0.1:8009/operation/log/nYqzu9pGur46gqqhXdmv3T"
    }