SOURCE

const CustomInfoDataList =
    [{ "indexGroupId": "11", "indexGroupName": "扶商", "list": [{ "id": 14010111418304, "name": "T1-D10指标", "pid": 11, "indexKey": "bdd6105c-619b-4d06-ac45-ae4d1be9fa9f", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 13991362899648, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "T1-D10指标", "indexId": 14010111418304, "powerNum": "0户", "indexQoQ": "-100.00%", "indexYoY": "0.00%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": false, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "户" } }, { "id": 14010141059520, "name": "T1-D13指标", "pid": 11, "indexKey": "56111cd1-b10e-4ea8-b711-36eeb131034b", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 13991362899648, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "T1-D13指标", "indexId": 14010141059520, "powerNum": "29.47%", "indexQoQ": "-5.15%", "indexYoY": "-56.73%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "百分比" } }, { "id": 14630291012032, "name": "T1-D12", "pid": 11, "indexKey": "a6a07b99-0c0d-4c30-b6e9-55d4fa626c3d", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 13991362899648, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "T1-D12", "indexId": 14630291012032, "powerNum": "0户", "indexQoQ": "-100.00%", "indexYoY": "0.00%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": false, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "户" } }, { "id": 13993775347648, "name": "A-D4指标", "pid": 11, "indexKey": "f42bd989-7d36-4856-8695-a55f59d615ae", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 14611258871744, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": true }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "A-D4指标", "indexId": 13993775347648, "powerNum": "2个", "indexQoQ": "-50.00%", "indexYoY": "-92.86%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "个" } }, { "id": 13993823433664, "name": "T1-D6指标", "pid": 11, "indexKey": "9e76ab03-b2cb-461b-b85f-fb11d4c02655", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 13991362899648, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "T1-D6指标", "indexId": 13993823433664, "powerNum": "2户", "indexQoQ": "0.00%", "indexYoY": "-86.67%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "户" } }, { "id": 14010482080192, "name": "B-D14指标", "pid": 11, "indexKey": "de249af2-997b-49ab-ad24-3fe655ffe74d", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 14613196059328, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "B-D14指标", "indexId": 14010482080192, "powerNum": "0户", "indexQoQ": "0.00%", "indexYoY": "0.00%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "户" } }, { "id": 14035569925824, "name": "D17", "pid": 11, "indexKey": "e5c7336d-419d-422b-90a5-546e05d8d5fc", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 14035477109696, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "D17", "indexId": 14035569925824, "powerNum": "0.00%", "indexQoQ": "0.00%", "indexYoY": "0.00%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "百分比" } }, { "id": 14035563654592, "name": "D16", "pid": 11, "indexKey": "ab1b70b3-c2f7-4d59-ac85-3dac0ec47346", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 14035477109696, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "D16", "indexId": 14035563654592, "powerNum": "0.00%", "indexQoQ": "0.00%", "indexYoY": "0.00%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "百分比" } }, { "id": 14630268576448, "name": "T1_D4", "pid": 11, "indexKey": "f42bd989-7d36-4856-8695-a55f59d615ae", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 13991362899648, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "T1_D4", "indexId": 14630268576448, "powerNum": "2个", "indexQoQ": "-50.00%", "indexYoY": "-92.86%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "个" } }, { "id": 14630300970688, "name": "T1-D14", "pid": 11, "indexKey": "de249af2-997b-49ab-ad24-3fe655ffe74d", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 13991362899648, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "T1-D14", "indexId": 14630300970688, "powerNum": "0户", "indexQoQ": "0.00%", "indexYoY": "0.00%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "户" } }, { "id": 14035575518656, "name": "D18", "pid": 11, "indexKey": "6fe2daf2-b74a-46fa-ae1b-2f4990db8ba6", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 14035477109696, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "D18", "indexId": 14035575518656, "powerNum": "0户", "indexQoQ": "0.00%", "indexYoY": "0.00%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": false, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "户" } }, { "id": 14657399324864, "name": "C-D20", "pid": 11, "indexKey": "68a8a899-8263-452b-b50f-19fda0f25fd1", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 14657375043776, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "C-D20", "indexId": 14657399324864, "powerNum": "0.00%", "indexQoQ": "0.00%", "indexYoY": "0.00%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "百分比" } }, { "id": 14657389350336, "name": "C-D19", "pid": 11, "indexKey": "eb1051c2-809f-42d4-8d12-693bf824eb70", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 14657375043776, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "C-D19", "indexId": 14657389350336, "powerNum": "0.00%", "indexQoQ": "0.00%", "indexYoY": "0.00%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "百分比" } }, { "id": 14655454471616, "name": "指标T20", "pid": 11, "indexKey": "68a8a899-8263-452b-b50f-19fda0f25fd1", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 14035477109696, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "指标T20", "indexId": 14655454471616, "powerNum": "0.00%", "indexQoQ": "0.00%", "indexYoY": "0.00%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "百分比" } }, { "id": 14655403829952, "name": "指标T19", "pid": 11, "indexKey": "eb1051c2-809f-42d4-8d12-693bf824eb70", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 14035477109696, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "指标T19", "indexId": 14655403829952, "powerNum": "0.00%", "indexQoQ": "0.00%", "indexYoY": "0.00%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "百分比" } }] }, { "indexGroupId": "4", "indexGroupName": "销售额管理", "list": [{ "id": 13966263232192, "name": "D5指标测试", "pid": 4, "indexKey": "595efbf7-293f-43e6-ac02-6df508e133bd", "childList": [], "nodeType": "index", "boardShow": true, "url": "", "reportId": 13966090092224, "indexRemark": "", "indexHomePageList": [{ "groupCode": "platform", "groupName": "慧营首页", "fixed": false }, { "groupCode": "tfs", "groupName": "慧融首页", "fixed": false }], "indexName": "D5指标测试", "indexId": 13966263232192, "powerNum": "6个", "indexQoQ": "20.00%", "indexYoY": "-71.43%", "indexChartShow": { "dateDayShow": true, "dateWeekShow": true, "dateMonthShow": true, "dateQuarterShow": true, "dateYearShow": true, "dateRange": true, "yoyShow": true, "qoqShow": true, "chartShow": true, "chartType": "line", "unit": "个" } }] }]
const lists = CustomInfoDataList.flatMap(item => {
    return item.list
})
  .flat()
    .map((item) => {
      return { id: item.id, groupCode: item.indexGroupId }
    })
console.log(lists)
console 命令行工具 X clear

                    
>
console