我们可以在Angular 5中做类似的事情吗?
这是一个模拟表:
。
我的数据采用以下格式:
this.dashboardData = [
{"dashboardDate":"2018-07-26T00:00:00"
,"analysis":[
{"code":"PT0100","capacityCount":3,"capacityUsed":0},
,{"code":"A3900","capacityCount":3,"capacityUsed":0}
]},
,{"dashboardDate":"2018-07-27T00:00:00"
,"analysis":[
{"code":"PT0100","capacityCount":3,"capacityUsed":3}
,{"code":"A3900","capacityCount":3,"capacityUsed":0}
]}
];
日期是我的列,代码是我的行。行和列都是动态的。任何帮助将不胜感激