想要bootstrap-table实现下表,该如何把json数据渲染出来,谢谢
返回的json数据格式如下:
{
"total":2,
"rows":[
{
"id":2,
"user_id":1,
"status":"1",
"name":"测试信息1111111",
"status_text":"待确认",
"createtime":1589524272,
"record_arr":[
{
"id":4,
"sale_id":2,
"item":"aaaaa",
"number":8000,
"createtime":1589524172
},
{
"id":5,
"sale_id":2,
"item":"bbbbb",
"number":7000,
"createtime":1589524172
},
{
"id":6,
"sale_id":2,
"item":"ccccc",
"number":6000,
"createtime":1589524172
}
]
},
{
"id":1,
"user_id":1,
"status":"1",
"name":"测试信息2222222",
"status_text":"待确认",
"createtime":1589524172,
"record_arr":[
{
"id":1,
"sale_id":1,
"item":"ddddd",
"number":10000,
"createtime":1589523959
},
{
"id":2,
"sale_id":1,
"item":"eeeee",
"number":10000,
"createtime":1589523959
},
{
"id":3,
"sale_id":1,
"item":"fffff",
"number":10000,
"createtime":1589523959
}
]
}
]
}