接口说明:

    用于将图表导出为图片,这里需要注意的,导出接口用户在页面上临时的选择,无法实现导出

    基本信息:

    属性
    API /api/dash/report/exportCapture
    Method GET

    请求参数:

    字段名称 参数类型 参数说明
    token String 鉴权token
    exportType String(Optional) 导出图片类型,"picture"为导出图片,"pdf"为导出PDF,默认是导出图片
    reportId Int 需要导出的报告id
    type String type="report",表示是导出报告,type="component",表示导出图表组件
    componentId String(Optional) 组件id,如果type="component",必传
    dashboardId Int(Optional) 页面id,如果type="component",必传
    {
        token: "1503575355359c4fdea8ec1683ed10edd91ae",
        exportType: "picture",   //png格式
        reportId: 1
    }

    成功数据返回:

    返回一个下载链接