//数据
{"code":200,"key":"S_0000","message":"请求成功","result":{"total":21,"page":1,"rows":[{"platform_id":41,"platform_code":"08ec53c6544ab642edc1a465168ed616","platform_name":"test平台1","role_info":[{"role_id":968477,"role_name":"平台管理员","create_time":"2022-07-04 16:44:48"}]},{"platform_id":22,"platform_code":"095a9ec39fcf7356f48a91c968a4b5f5","platform_name":"测试0004","role_info":[{"role_id":968484,"role_name":"平台管理员","create_time":"2022-07-04 16:47:18"}]},{"platform_id":17,"platform_code":"2c083aa1afa02e9bfc801bef2a672f83","platform_name":"test","role_info":[{"role_id":968474,"role_name":"普通角色","create_time":"2022-07-04 16:41:39"},{"role_id":968473,"role_name":"平台管理员","create_time":"2022-07-04 16:41:39"}]},{"platform_id":24,"platform_code":"3214311041beeeed7d0b66f08f36164f","platform_name":"测试0006","role_info":[{"role_id":968487,"role_name":"运营人员","create_time":"2022-07-04 16:56:14"}]}]}}
const list = res.result.rows
list.forEach(item => {
item['role_name'] = item.role_info.map(k => k.role_name)
item['role_name'] = item['role_name'].toString()
item['create_time'] = item.role_info.map(k => k.create_time)
item['create_time'] = item['create_time'].toString()
})
this.data = list