smart-array-to-tree icon indicating copy to clipboard operation
smart-array-to-tree copied to clipboard

并不生效

Open wintsa123 opened this issue 2 years ago • 0 comments

[
    {
        "bh": "1",
        "id": "1",
        "zx": 0,
        "dad": "",
        "bjmc": "第一部分 建筑安装工程费",
        "bhkey": "8-1",
        "dadkey": "",
        "jsjd": "控制性规划",
        "jsjdObj": {
            "value": "8",
            "showname": "控制性规划"
        },
        "key": "8-1"
    },
    {
        "bh": "1-2",
        "id": "10",
        "zx": 0,
        "dad": "1",
        "bjmc": "路基工程",
        "bhkey": "8-1-2",
        "dadkey": "8-1",
        "jsjd": "控制性规划",
        "jsjdObj": {
            "value": "8",
            "showname": "控制性规划"
        },
        "key": "8-1-2"
    }
]
const a= smartArrayToTree(temp1,{ id: 'bhkey', pid: 'dadkey', firstPid: null })

返回未定义,,,,

wintsa123 avatar Jul 17 '23 03:07 wintsa123