接口说明:

    获取导出任务列表

    基本信息:

    API /api/dash/exportExcelTask/list
    Method POST

    请求参数:

    字段名称 参数类型 参数说明
    type String 导出类型,见「type枚举」
    projectId Int 项目id
    status Optional(Array(String)) 导出状态的列表,见「status枚举」
    offset Optional(Int) 返回结果偏移量
    limit Optional(Int) 返回结果数量限制
    keyword Optional(String) 关键词
    startTime Optional(String) 开始时间
    endTime Optional(String) 结束时间
    exportType Optional(String) 导出结果类型,见「exportType枚举」

    type枚举:

    report 报告
    component 组件
    tab 页面
    easyFetch 取数
    easyFetchWebhook 取数Webhook
    allEasyFetch 所有取数相关
    survey 填报
    elecTable 电子表格

    status枚举:

    success 成功
    waiting 排队中
    waitingData 查询数据中
    pending 数据传输中
    generating 文件生成中
    uploading 文件上传中
    fail 失败
    expired 已过期
    approving 审批中
    approvePass 审批通过
    approveReject 审批拒绝

    exportType枚举:

    excel 导出为excel
    csv 导出为csv
    crossTable 导出为交叉表
    {
        "type": "report",
        "projectId": 1,
        "status": "success",
        "offset": "0",
        "limit": "1",
        "keyword": "test",
        "startTime": "2024-06-18 00:00:00",
        "endTime": "2024-07-18 00:00:00",
        "exportType": "excel"
    }

    成功数据返回:

    {
        "code": 200,
        "result": {
            "count": 307,   // 总任务数量
            "list": [       // 任务列表
                {
                    "id": 52464,                              // 任务id
                    "type": "dashboard",                      // 导出类型(report: 报告, dashboard: 页面, component: 组件)
                    "reportId": 21263,                        // 报告id
                    "reportName": "report1",                  // 报告名称
                    "dashboardId": 31112,                     // 页面id
                    "subName": "dashboard1",                  // 页面名称
                    "componentId": null,                      // 组件id
                    "componentName": "component1",            // 组件名称
                    "componentType": "table",                 // 组件类型(table: 表格, auto: 图表, indicator: 指标卡)
                    "exportWay": "sync",                      // 导出方式(sync: 普通导出, asyc: 大数据量导出)
                    "status": "expired",                      // 任务状态(见输入参数的「status枚举」)
                    "createTime": "2024-06-26T02:07:45.000Z", // 创建时间
                    "modifyTime": "2024-06-29T16:00:25.000Z", // 修改时间
                }
            ]
        }
    }