Saber前端树形结构异常

Saber 未结 2 2249
rohon
rohon 2019-06-17 20:28

前端 树形结构展开后如图


image.png



数据 结构下



{
    "code":200,
    "success":true,
    "data":[
        {
            "companyCode":"1134730999683407874",
            "companyParentCode":0,
            "companyName":"中国建筑第二工程局有限公司",
            "companyLevel":0,
            "companyState":1,
            "addtime":"2019-06-07 00:29:55",
            "id":"1134730999683407874",
            "parentId":"0",
            "children":[
                {
                    "companyCode":"1135573482408587265",
                    "companyParentCode":1134730999683407900,
                    "companyName":"郑州地铁项目",
                    "companyLevel":1,
                    "companyState":1,
                    "addtime":"2019-06-07 00:29:55",
                    "id":"1135573482408587265",
                    "parentId":"1134730999683407874",
                    "parentName":"中国建筑第二工程局有限公司",
                    "sort":1
                }
,
                {
                    "companyCode":"1140593052654350338",
                    "companyParentCode":1134730999683407900,
                    "companyName":"武汉地铁",
                    "companyLevel":1,
                    "companyState":1,
                    "addtime":"2019-06-17 20:12:28",
                    "id":"1140593052654350338",
                    "parentId":"1134730999683407874",
                    "parentName":"中国建筑第二工程局有限公司",
                    "sort":1
                }

            ]
,
            "parentName":"顶级",
            "sort":0
        }

    ]
,
    "msg":"操作成功"
}

2条回答
提交回复