col: [
{ class1: "增量效益", class2: "主营收入份额1", indexName: "未开始" },
{ class1: "增量效益", class2: "主营收入份额1", indexName: "已完成" },
{ class1: "增量效益", class2: "主营收入份额2", indexName: "未开始" },
{ class1: "增量效益", class2: "主营收入份额2", indexName: "已完成" },
{ class1: "网络效能", class2: "单基站流量1", indexName: "未采取" },
{ class1: "网络效能", class2: "单基站流量1", indexName: "已采取" },
{ class1: "网络效能", class2: "单基站流量2", indexName: "未采取" },
{ class1: "网络效能", class2: "单基站流量2", indexName: "已采取" },
],
以上数据格式的数据如何转成以下数据
formattArr: [
{
title: "增量效益",
children: [
{
lable: "主营收入份额1",
children: [{ lable: "未开始" }, { lable: "已完成" }],
},
{
lable: "主营收入份额2",
children: [{ lable: "未开始" }, { lable: "已完成" }],
},
],
},
{
title: "网络效能",
children: [
{
lable: "单基站流量1",
children: [{ lable: "未采取" }, { lable: "已采取" }],
},
{
lable: "单基站流量2",
children: [{ lable: "未采取" }, { lable: "已采取" }],
},
],
},
],