0

有两个表是一对多关系的,服务器返回的数据里面包含了这两个表的数据,其中“多”的那个是以List/数组形式储存的。请问bootstrap-table的data-field要怎样才能获得这个List的数据呢(例如channelLogs里面的callerUuid)?还是说只能以父子表的做法分开两次取得?
以下是返回的JSON数据

{

"success": true,
"status": "200",
"msg": "",
"result": {
    "pageNumber": 1,
    "pageSize": 10,
    "count": 126,
    "list": [
        {
            "isNewRecord": true,
            "cid": 1,
            "vcid": "1",
            "callUuid": "ABC123",
            "callerExtNum": "1005",
            "callerUuid": "ABC1005",
            "callerTerminalType": 2,
            "calleeExtNum": "1018",
            "calleeUuid": "ABC1018",
            "calleeTerminalType": 1,
            "answerTime": 1499054430000,
            "callEndTime": 1499055690000,
            "hostName": "node1.test1.com",
            "status": 5,
            "channelLogs": [
                {
                    "isNewRecord": true,
                    "callerUuid": "ABC1005",
                    "callDirection": "inbound",
                    "callerExtNum": "1005",
                    "callerIp": "10.1.39.90",
                    "callerTerminalType": 1,
                    "calleeExtNum": "1004",
                    "calleeIp": "10.1.40.42",
                    "channelStartTime": 1499428457000,
                    "channelDestroyTime": 1499428467000
                },
                {
                    "isNewRecord": true,
                    "callerUuid": "ABC1018",
                    "callDirection": "outbound",
                    "callerExtNum": "1005",
                    "callerIp": "10.1.39.90",
                    "callerTerminalType": 1,
                    "calleeExtNum": "1006",
                    "calleeIp": "10.1.39.90",
                    "channelStartTime": 1499584654000,
                    "channelDestroyTime": 1499584660000
                }
            ]
        },
        {
            "isNewRecord": true,
            "cid": 2,
            "vcid": "2",
            "callUuid": "ABC124",
            "callerExtNum": "1008",
            "callerUuid": "ABC1241008",
            "callerTerminalType": 2,
            "calleeExtNum": "1018",
            "calleeUuid": "ABC1241018",
            "calleeTerminalType": 1,
            "answerTime": 1499055934000,
            "callEndTime": -28800000,
            "hostName": "node1.test1.com",
            "status": 2
        },
        {
            "isNewRecord": true,
            "cid": 10,
            "callerExtNum": "1005",
            "callerUuid": "654392a0-6305-11e7-8044-ab4417eaf6a1",
            "callerTerminalType": 1,
            "calleeExtNum": "1004",
            "calleeTerminalType": 2,
            "answerTime": -28800000,
            "callEndTime": -28800000,
            "hostName": "10.1.40.42",
            "status": 1,
            "channelLogs": [
                {
                    "isNewRecord": true,
                    "callerUuid": "654392a0-6305-11e7-8044-ab4417eaf6a1",
                    "callDirection": "inbound",
                    "callerExtNum": "1005",
                    "callerIp": "10.1.39.90",
                    "callerTerminalType": 1,
                    "calleeExtNum": "1004",
                    "calleeIp": "10.1.40.42",
                    "channelStartTime": 1499426048000,
                    "channelDestroyTime": 1499426108000
                }
            ]
        }
                ],
    "sort": "",
    "order": "",
    "firstResult": 0,
    "maxResults": 10
}

}

撰写答案