let data = [
{
"id": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"voltageClass": "f1b055b9-d5cf-4f3f-a43b-481d7c18014f",
"text": "yzh测试线路",
"nodes": [
{
"id": "c80dce9f-107c-4a99-8886-d7eb0375d4da",
"text": "20",
"nodes": [
{
"sysID": "92e015e4-e0a7-4a8e-b3da-96fb484ada80",
"id": "92e015e4-e0a7-4a8e-b3da-96fb484ada80",
"text": "yzh测试线路20号杆塔",
"deviceNo": "340100000011200Y1",
"sysTowerId": "c80dce9f-107c-4a99-8886-d7eb0375d4da",
"TowerNo": "20",
"sysGridLineID": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"LineName": "yzh测试线路",
"ChannelId": "1",
"NCWatermark": "220kV-yzh测试线路-20-大号侧--1(1)-1",
"IsOnline": false,
"Association": "141a3171-07d1-4b19-a4e8-95b4348e56ad",
"HavePatrolJournal": false,
"nodes": [
{
"id": "06d771f0-56dc-42e5-9845-6e9907301fad",
"deviceid": "92e015e4-e0a7-4a8e-b3da-96fb484ada80",
"text": "1(1)",
"chno": 1,
"chid": "1"
},
{
"id": "82ac2c79-8702-4971-982f-a474f796a03c",
"deviceid": "92e015e4-e0a7-4a8e-b3da-96fb484ada80",
"text": "2(2)",
"chno": 2,
"chid": "2"
}
]
}
]
},
{
"id": "fcc175ec-bb2d-4e03-8d9f-501ae1ced8a5",
"text": "21",
"nodes": [
{
"sysID": "b1a356ac-fdaf-40ea-b016-2c7fbbe8ae7e",
"id": "b1a356ac-fdaf-40ea-b016-2c7fbbe8ae7e",
"text": "yzh测试线路21号杆塔",
"deviceNo": "340100000011200Y2",
"channels": [
],
"sysTowerId": "fcc175ec-bb2d-4e03-8d9f-501ae1ced8a5",
"TowerNo": "21",
"sysGridLineID": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"LineName": "yzh测试线路",
"ChannelId": "340100000011200Y2",
"NCWatermark": "220kV-yzh测试线路-21-大号侧---1",
"IsOnline": false,
"Association": "141a3171-07d1-4b19-a4e8-95b4348e56ad",
"HavePatrolJournal": false
}
]
},
{
"id": "af9761b7-c8c0-4912-9795-cdc93754a480",
"text": "22",
"nodes": [
{
"sysID": "c0707924-74fa-4e04-b713-78aef50d3122",
"id": "c0707924-74fa-4e04-b713-78aef50d3122",
"text": "yzh测试线路22号杆塔",
"deviceNo": "340100000011200Y4",
"channels": [
],
"sysTowerId": "af9761b7-c8c0-4912-9795-cdc93754a480",
"TowerNo": "22",
"sysGridLineID": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"LineName": "yzh测试线路",
"ChannelId": "340100000011200Y4",
"NCWatermark": "220kV-yzh测试线路-22-大号侧---1",
"IsOnline": false,
"Association": "141a3171-07d1-4b19-a4e8-95b4348e56ad",
"HavePatrolJournal": false
}
]
},
{
"id": "c71d12be-25a1-45fd-801e-43c77a4bd68e",
"text": "23",
"nodes": [
{
"sysID": "c984fb27-9ded-4661-895d-8bf30c6feaca",
"id": "c984fb27-9ded-4661-895d-8bf30c6feaca",
"text": "yzh测试线路23号杆塔",
"deviceNo": "340100000011200Y3",
"channels": [
{
"id": "c74ddabf-e462-4249-95d7-3780e1eeacb1",
"deviceid": "c984fb27-9ded-4661-895d-8bf30c6feaca",
"text": "1(1)",
"chno": 1,
"chid": "1"
}
],
"sysTowerId": "c71d12be-25a1-45fd-801e-43c77a4bd68e",
"TowerNo": "23",
"sysGridLineID": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"LineName": "yzh测试线路",
"ChannelId": "1",
"NCWatermark": "220kV-yzh测试线路-23-大号侧--1(1)-1",
"IsOnline": false,
"Association": "141a3171-07d1-4b19-a4e8-95b4348e56ad",
"HavePatrolJournal": false
}
]
}
]
},
{
"id": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"voltageClass": "0f106455-7f91-4252-9af3-d45c0b741c3a",
"text": "江西富Ⅰ线",
"nodes": [
{
"id": "792ac297-877d-45ac-95ae-be65a07a0645",
"text": "1",
"nodes": [
{
"sysID": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"id": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "3401000000112005Z",
"deviceNo": "3401000000112005Z",
"sysTowerId": "792ac297-877d-45ac-95ae-be65a07a0645",
"TowerNo": "1",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "1",
"NCWatermark": "110kV-江西富Ⅰ线-1-小号侧--1(1)-1",
"IsOnline": true,
"Association": "f8965121-ed12-450f-8232-305486741e91",
"HavePatrolJournal": false,
"nodes": [
{
"id": "b27a4ba9-ee68-401d-b463-05f42fd8ec79",
"deviceid": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "1(1)",
"chno": 1,
"chid": "1"
},
{
"id": "9082ef8f-e9bd-4a9a-8b2a-0cc7fb904456",
"deviceid": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "2(2)",
"chno": 2,
"chid": "2"
},
{
"id": "dfa4045e-7484-44c4-8462-d308645a804e",
"deviceid": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "3(3)",
"chno": 3,
"chid": "3"
}
]
},
{
"sysID": "5711dc8b-318c-4fca-9110-4301392fbe05",
"id": "5711dc8b-318c-4fca-9110-4301392fbe05",
"text": "测试11",
"deviceNo": "3402000000112005Z",
"channels": [
],
"sysTowerId": "792ac297-877d-45ac-95ae-be65a07a0645",
"TowerNo": "1",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "3402000000112005Z",
"NCWatermark": "110kV-江西富Ⅰ线-1-小号侧---1",
"IsOnline": false,
"Association": "f8965121-ed12-450f-8232-305486741e91",
"HavePatrolJournal": false
}
]
},
{
"id": "be9fd33f-614b-4e2c-8014-c9fe625ec58a",
"text": "2",
"nodes": [
{
"sysID": "8db15b93-cd68-4c13-a0f8-bca98a04d10f",
"id": "8db15b93-cd68-4c13-a0f8-bca98a04d10f",
"text": "江西富Ⅰ线2",
"deviceNo": "34020000000800002",
"channels": [
],
"sysTowerId": "be9fd33f-614b-4e2c-8014-c9fe625ec58a",
"TowerNo": "2",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "34020000000800002",
"NCWatermark": "110kV-江西富Ⅰ线-2-大号侧---1",
"IsOnline": false,
"Association": "55b2a0e5-b608-4eb2-8537-f2112a395e40",
"HavePatrolJournal": false
},
{
"sysID": "01563109-c20e-4422-8f89-fa28a24cd19b",
"id": "01563109-c20e-4422-8f89-fa28a24cd19b",
"text": "江西富Ⅰ线2",
"deviceNo": "江西富Ⅰ线2",
"channels": [
],
"sysTowerId": "be9fd33f-614b-4e2c-8014-c9fe625ec58a",
"TowerNo": "2",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "江西富Ⅰ线2",
"NCWatermark": "110kV-江西富Ⅰ线-2-大号侧---1",
"IsOnline": false,
"Association": "55b2a0e5-b608-4eb2-8537-f2112a395e40",
"HavePatrolJournal": false
}
]
},
{
"id": "0af1b5d4-e923-4aac-880e-5dc79da398e3",
"text": "3",
"nodes": [
{
"sysID": "2cd40c42-7bbe-498b-b06c-3bbbb53b0f43",
"id": "2cd40c42-7bbe-498b-b06c-3bbbb53b0f43",
"text": "江西富Ⅰ线3",
"deviceNo": "34020000000800003",
"channels": [
],
"sysTowerId": "0af1b5d4-e923-4aac-880e-5dc79da398e3",
"TowerNo": "3",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "34020000000800003",
"NCWatermark": "110kV-江西富Ⅰ线-3-大号侧---1",
"IsOnline": false,
"Association": "a587aa84-6460-4b6b-b6c7-7cdbe546b2f4",
"HavePatrolJournal": false
},
{
"sysID": "40c2cff3-3a88-4fdd-a8f6-d591d0c29860",
"id": "40c2cff3-3a88-4fdd-a8f6-d591d0c29860",
"text": "江西富Ⅰ线3",
"deviceNo": "江西富Ⅰ线3",
"channels": [
],
"sysTowerId": "0af1b5d4-e923-4aac-880e-5dc79da398e3",
"TowerNo": "3",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "江西富Ⅰ线3",
"NCWatermark": "110kV-江西富Ⅰ线-3-大号侧---1",
"IsOnline": false,
"Association": "a587aa84-6460-4b6b-b6c7-7cdbe546b2f4",
"HavePatrolJournal": false
}
]
},
{
"id": "cf31b2e9-c289-4d68-a13d-24bfee4c5384",
"text": "4",
"nodes": [
{
"sysID": "53ac997f-9fa7-4d6c-b09e-3efc58be5378",
"id": "53ac997f-9fa7-4d6c-b09e-3efc58be5378",
"text": "江西富Ⅰ线4",
"deviceNo": "34020000000800004",
"channels": [
],
"sysTowerId": "cf31b2e9-c289-4d68-a13d-24bfee4c5384",
"TowerNo": "4",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "34020000000800004",
"NCWatermark": "110kV-江西富Ⅰ线-4-未知---1",
"IsOnline": false,
"Association": "a587aa84-6460-4b6b-b6c7-7cdbe546b2f4",
"HavePatrolJournal": false
},
{
"sysID": "4cacd178-8fa6-4e26-a8a8-5af1a5004eff",
"id": "4cacd178-8fa6-4e26-a8a8-5af1a5004eff",
"text": "江西富Ⅰ线4",
"deviceNo": "江西富Ⅰ线4",
"channels": [
],
"sysTowerId": "cf31b2e9-c289-4d68-a13d-24bfee4c5384",
"TowerNo": "4",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "江西富Ⅰ线4",
"NCWatermark": "110kV-江西富Ⅰ线-4-大号侧---1",
"IsOnline": false,
"Association": "a587aa84-6460-4b6b-b6c7-7cdbe546b2f4",
"HavePatrolJournal": false
}
]
},
{
"id": "90bc946a-2bc6-440c-9a1a-e114dc0ed03b",
"text": "5",
"nodes": [
{
"sysID": "23897eb1-01a1-4239-8631-6afc1dfae320",
"id": "23897eb1-01a1-4239-8631-6afc1dfae320",
"text": "江西富Ⅰ线5",
"deviceNo": "34020000000800005",
"channels": [
],
"sysTowerId": "90bc946a-2bc6-440c-9a1a-e114dc0ed03b",
"TowerNo": "5",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "34020000000800005",
"NCWatermark": "110kV-江西富Ⅰ线-5-未知---1",
"IsOnline": false,
"Association": "a587aa84-6460-4b6b-b6c7-7cdbe546b2f4",
"HavePatrolJournal": false
},
{
"sysID": "c11d0fcf-8f62-4223-bb1a-0fe1ef9fe203",
"id": "c11d0fcf-8f62-4223-bb1a-0fe1ef9fe203",
"text": "江西富Ⅰ线5",
"deviceNo": "江西富Ⅰ线5",
"channels": [
],
"sysTowerId": "90bc946a-2bc6-440c-9a1a-e114dc0ed03b",
"TowerNo": "5",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "江西富Ⅰ线5",
"NCWatermark": "110kV-江西富Ⅰ线-5-大号侧---1",
"IsOnline": false,
"Association": "a587aa84-6460-4b6b-b6c7-7cdbe546b2f4",
"HavePatrolJournal": false
}
]
},
{
"id": "b685d7a7-e867-42a1-b86a-b3783ff006fc",
"text": "6",
"nodes": [
{
"sysID": "dcf0da0d-c8d0-44d6-9b29-d7bb7a85a26b",
"id": "dcf0da0d-c8d0-44d6-9b29-d7bb7a85a26b",
"text": "江西富Ⅰ线6",
"deviceNo": "江西富Ⅰ线6",
"channels": [
],
"sysTowerId": "b685d7a7-e867-42a1-b86a-b3783ff006fc",
"TowerNo": "6",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "江西富Ⅰ线6",
"NCWatermark": "110kV-江西富Ⅰ线-6-大号侧---1",
"IsOnline": false,
"Association": "a587aa84-6460-4b6b-b6c7-7cdbe546b2f4",
"HavePatrolJournal": false
}
]
},
{
"id": "aaa2a9bb-ec2d-48d1-a5ab-f3f5de6f6b6d",
"text": "7",
"nodes": [
{
"sysID": "9321aeb1-7d64-4eb3-a435-9056ed3c185e",
"id": "9321aeb1-7d64-4eb3-a435-9056ed3c185e",
"text": "江西富Ⅰ线7",
"deviceNo": "江西富Ⅰ线7",
"channels": [
],
"sysTowerId": "aaa2a9bb-ec2d-48d1-a5ab-f3f5de6f6b6d",
"TowerNo": "7",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "江西富Ⅰ线7",
"NCWatermark": "110kV-江西富Ⅰ线-7-大号侧---1",
"IsOnline": false,
"Association": "a587aa84-6460-4b6b-b6c7-7cdbe546b2f4",
"HavePatrolJournal": false
}
]
},
{
"id": "bf5622c6-6c55-4ae0-ac2b-9797791fcd7c",
"text": "8",
"nodes": [
{
"sysID": "997e8463-6576-4125-9a55-0b75e9622951",
"id": "997e8463-6576-4125-9a55-0b75e9622951",
"text": "江西富Ⅰ线8",
"deviceNo": "江西富Ⅰ线8",
"channels": [
],
"sysTowerId": "bf5622c6-6c55-4ae0-ac2b-9797791fcd7c",
"TowerNo": "8",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "江西富Ⅰ线8",
"NCWatermark": "110kV-江西富Ⅰ线-8-大号侧---1",
"IsOnline": false,
"Association": "a587aa84-6460-4b6b-b6c7-7cdbe546b2f4",
"HavePatrolJournal": false
}
]
},
{
"id": "efd30125-0b9d-4694-aa27-534b17423691",
"text": "9",
"nodes": [
{
"sysID": "dfb1da08-f132-40be-8654-d468d10a1111",
"id": "dfb1da08-f132-40be-8654-d468d10a1111",
"text": "江西富Ⅰ线9",
"deviceNo": "江西富Ⅰ线9",
"channels": [
],
"sysTowerId": "efd30125-0b9d-4694-aa27-534b17423691",
"TowerNo": "9",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "江西富Ⅰ线9",
"NCWatermark": "110kV-江西富Ⅰ线-9-大号侧---1",
"IsOnline": false,
"Association": "a587aa84-6460-4b6b-b6c7-7cdbe546b2f4",
"HavePatrolJournal": false
}
]
},
{
"id": "776acc1a-4782-46f9-a8d4-f4f621641e32",
"text": "10",
"nodes": [
{
"sysID": "1e66521e-5f4d-45a8-86f6-e1ce479b41e0",
"id": "1e66521e-5f4d-45a8-86f6-e1ce479b41e0",
"text": "江西富Ⅰ线10",
"deviceNo": "江西富Ⅰ线10",
"channels": [
],
"sysTowerId": "776acc1a-4782-46f9-a8d4-f4f621641e32",
"TowerNo": "10",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "江西富Ⅰ线10",
"NCWatermark": "110kV-江西富Ⅰ线-10-大号侧---1",
"IsOnline": false,
"Association": "a587aa84-6460-4b6b-b6c7-7cdbe546b2f4",
"HavePatrolJournal": false
}
]
}
]
},
{
"id": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"voltageClass": "0f106455-7f91-4252-9af3-d45c0b741c3a",
"text": "江西富Ⅱ线",
"nodes": [
{
"id": "0819da3e-1102-45d2-b409-c6bdb3eb0c5b",
"text": "1",
"nodes": [
{
"sysID": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"id": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "3401000000112005Z",
"deviceNo": "3401000000112005Z",
"sysTowerId": "0819da3e-1102-45d2-b409-c6bdb3eb0c5b",
"TowerNo": "1",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "1",
"NCWatermark": "110kV-江西富Ⅱ线-1-小号侧--1(1)-1",
"IsOnline": true,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false,
"nodes": [
{
"id": "b27a4ba9-ee68-401d-b463-05f42fd8ec79",
"deviceid": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "1(1)",
"chno": 1,
"chid": "1"
},
{
"id": "9082ef8f-e9bd-4a9a-8b2a-0cc7fb904456",
"deviceid": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "2(2)",
"chno": 2,
"chid": "2"
},
{
"id": "dfa4045e-7484-44c4-8462-d308645a804e",
"deviceid": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "3(3)",
"chno": 3,
"chid": "3"
}
]
},
{
"sysID": "8db15b93-cd68-4c13-a0f8-bca98a04d10f",
"id": "8db15b93-cd68-4c13-a0f8-bca98a04d10f",
"text": "江西富Ⅱ线1",
"deviceNo": "34020000000800002",
"channels": [
],
"sysTowerId": "0819da3e-1102-45d2-b409-c6bdb3eb0c5b",
"TowerNo": "1",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "34020000000800002",
"NCWatermark": "110kV-江西富Ⅱ线-1-大号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
},
{
"sysID": "5711dc8b-318c-4fca-9110-4301392fbe05",
"id": "5711dc8b-318c-4fca-9110-4301392fbe05",
"text": "测试11",
"deviceNo": "3402000000112005Z",
"channels": [
],
"sysTowerId": "0819da3e-1102-45d2-b409-c6bdb3eb0c5b",
"TowerNo": "1",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "3402000000112005Z",
"NCWatermark": "110kV-江西富Ⅱ线-1-小号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
}
]
},
{
"id": "77d15e0e-ee7b-4da0-99a4-d7f7a7ef1195",
"text": "2",
"nodes": [
{
"sysID": "8db15b93-cd68-4c13-a0f8-bca98a04d10f",
"id": "8db15b93-cd68-4c13-a0f8-bca98a04d10f",
"text": "江西富Ⅱ线2",
"deviceNo": "34020000000800002",
"channels": [
],
"sysTowerId": "77d15e0e-ee7b-4da0-99a4-d7f7a7ef1195",
"TowerNo": "2",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "34020000000800002",
"NCWatermark": "110kV-江西富Ⅱ线-2-大号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
},
{
"sysID": "5711dc8b-318c-4fca-9110-4301392fbe05",
"id": "5711dc8b-318c-4fca-9110-4301392fbe05",
"text": "测试22",
"deviceNo": "3402000000112005Z",
"channels": [
],
"sysTowerId": "77d15e0e-ee7b-4da0-99a4-d7f7a7ef1195",
"TowerNo": "2",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "3402000000112005Z",
"NCWatermark": "110kV-江西富Ⅱ线-2-小号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
},
{
"sysID": "01563109-c20e-4422-8f89-fa28a24cd19b",
"id": "01563109-c20e-4422-8f89-fa28a24cd19b",
"text": "江西富Ⅱ线2",
"deviceNo": "江西富Ⅰ线2",
"channels": [
],
"sysTowerId": "77d15e0e-ee7b-4da0-99a4-d7f7a7ef1195",
"TowerNo": "2",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "江西富Ⅰ线2",
"NCWatermark": "110kV-江西富Ⅱ线-2-大号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
}
]
},
{
"id": "cd331778-c976-4b3e-9a1a-6fd4f98c6896",
"text": "3",
"nodes": [
{
"sysID": "2cd40c42-7bbe-498b-b06c-3bbbb53b0f43",
"id": "2cd40c42-7bbe-498b-b06c-3bbbb53b0f43",
"text": "江西富Ⅱ线3",
"deviceNo": "34020000000800003",
"channels": [
],
"sysTowerId": "cd331778-c976-4b3e-9a1a-6fd4f98c6896",
"TowerNo": "3",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "34020000000800003",
"NCWatermark": "110kV-江西富Ⅱ线-3-大号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
},
{
"sysID": "40c2cff3-3a88-4fdd-a8f6-d591d0c29860",
"id": "40c2cff3-3a88-4fdd-a8f6-d591d0c29860",
"text": "江西富Ⅱ线3",
"deviceNo": "江西富Ⅰ线3",
"channels": [
],
"sysTowerId": "cd331778-c976-4b3e-9a1a-6fd4f98c6896",
"TowerNo": "3",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "江西富Ⅰ线3",
"NCWatermark": "110kV-江西富Ⅱ线-3-大号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
}
]
},
{
"id": "b9900239-3f54-400e-83de-aca26b3ce742",
"text": "4",
"nodes": [
{
"sysID": "53ac997f-9fa7-4d6c-b09e-3efc58be5378",
"id": "53ac997f-9fa7-4d6c-b09e-3efc58be5378",
"text": "江西富Ⅱ线4",
"deviceNo": "34020000000800004",
"channels": [
],
"sysTowerId": "b9900239-3f54-400e-83de-aca26b3ce742",
"TowerNo": "4",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "34020000000800004",
"NCWatermark": "110kV-江西富Ⅱ线-4-未知---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
},
{
"sysID": "4cacd178-8fa6-4e26-a8a8-5af1a5004eff",
"id": "4cacd178-8fa6-4e26-a8a8-5af1a5004eff",
"text": "江西富Ⅱ线4",
"deviceNo": "江西富Ⅰ线4",
"channels": [
],
"sysTowerId": "b9900239-3f54-400e-83de-aca26b3ce742",
"TowerNo": "4",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "江西富Ⅰ线4",
"NCWatermark": "110kV-江西富Ⅱ线-4-大号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
}
]
},
{
"id": "d3775657-2240-4f66-a84f-5568bf56e641",
"text": "5",
"nodes": [
{
"sysID": "23897eb1-01a1-4239-8631-6afc1dfae320",
"id": "23897eb1-01a1-4239-8631-6afc1dfae320",
"text": "江西富Ⅱ线5",
"deviceNo": "34020000000800005",
"channels": [
],
"sysTowerId": "d3775657-2240-4f66-a84f-5568bf56e641",
"TowerNo": "5",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "34020000000800005",
"NCWatermark": "110kV-江西富Ⅱ线-5-未知---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
},
{
"sysID": "c11d0fcf-8f62-4223-bb1a-0fe1ef9fe203",
"id": "c11d0fcf-8f62-4223-bb1a-0fe1ef9fe203",
"text": "江西富Ⅱ线5",
"deviceNo": "江西富Ⅰ线5",
"channels": [
],
"sysTowerId": "d3775657-2240-4f66-a84f-5568bf56e641",
"TowerNo": "5",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "江西富Ⅰ线5",
"NCWatermark": "110kV-江西富Ⅱ线-5-大号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
}
]
},
{
"id": "2751a1fa-ac18-4d8f-b5ab-337ca91945f7",
"text": "6",
"nodes": [
{
"sysID": "dcf0da0d-c8d0-44d6-9b29-d7bb7a85a26b",
"id": "dcf0da0d-c8d0-44d6-9b29-d7bb7a85a26b",
"text": "江西富Ⅱ线6",
"deviceNo": "江西富Ⅰ线6",
"channels": [
],
"sysTowerId": "2751a1fa-ac18-4d8f-b5ab-337ca91945f7",
"TowerNo": "6",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "江西富Ⅰ线6",
"NCWatermark": "110kV-江西富Ⅱ线-6-大号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
}
]
},
{
"id": "6c234b7a-9ad7-4dc3-a179-0b84cfaa9652",
"text": "7",
"nodes": [
{
"sysID": "9321aeb1-7d64-4eb3-a435-9056ed3c185e",
"id": "9321aeb1-7d64-4eb3-a435-9056ed3c185e",
"text": "江西富Ⅱ线7",
"deviceNo": "江西富Ⅰ线7",
"channels": [
],
"sysTowerId": "6c234b7a-9ad7-4dc3-a179-0b84cfaa9652",
"TowerNo": "7",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "江西富Ⅰ线7",
"NCWatermark": "110kV-江西富Ⅱ线-7-大号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
}
]
},
{
"id": "ca3faeab-92dc-4371-abc2-b80f6c4ca39c",
"text": "8",
"nodes": [
{
"sysID": "997e8463-6576-4125-9a55-0b75e9622951",
"id": "997e8463-6576-4125-9a55-0b75e9622951",
"text": "江西富Ⅱ线8",
"deviceNo": "江西富Ⅰ线8",
"channels": [
],
"sysTowerId": "ca3faeab-92dc-4371-abc2-b80f6c4ca39c",
"TowerNo": "8",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "江西富Ⅰ线8",
"NCWatermark": "110kV-江西富Ⅱ线-8-大号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
}
]
},
{
"id": "9a9a4a54-1ad6-4d50-96d1-29acbdcaa433",
"text": "9",
"nodes": [
{
"sysID": "dfb1da08-f132-40be-8654-d468d10a1111",
"id": "dfb1da08-f132-40be-8654-d468d10a1111",
"text": "江西富Ⅱ线9",
"deviceNo": "江西富Ⅰ线9",
"channels": [
],
"sysTowerId": "9a9a4a54-1ad6-4d50-96d1-29acbdcaa433",
"TowerNo": "9",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "江西富Ⅰ线9",
"NCWatermark": "110kV-江西富Ⅱ线-9-大号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
}
]
},
{
"id": "5c9c3eb5-c997-4090-8c79-553782fd2aa0",
"text": "10",
"nodes": [
{
"sysID": "1e66521e-5f4d-45a8-86f6-e1ce479b41e0",
"id": "1e66521e-5f4d-45a8-86f6-e1ce479b41e0",
"text": "江西富Ⅱ线10",
"deviceNo": "江西富Ⅰ线10",
"channels": [
],
"sysTowerId": "5c9c3eb5-c997-4090-8c79-553782fd2aa0",
"TowerNo": "10",
"sysGridLineID": "833cd9e5-2f68-481c-80f8-2b9488caae87",
"LineName": "江西富Ⅱ线",
"ChannelId": "江西富Ⅰ线10",
"NCWatermark": "110kV-江西富Ⅱ线-10-大号侧---1",
"IsOnline": false,
"Association": "381e0a2d-6854-45a1-9996-1ad37ff0e920",
"HavePatrolJournal": false
}
]
}
]
}
]
let id='1e66521e-5f4d-45a8-86f6-e1ce479b41e0'
function getLastLevelItems(arr,id) {
let lastLevelItems = [];
function getLastLevel(nodes) {
nodes.forEach(node => {
if (node.id===id) {
lastLevelItems.push(node);
}
if (Array.isArray(node.nodes) && node.nodes.length > 0) {
getLastLevel(node.nodes);
}
});
}
getLastLevel(arr);
return lastLevelItems;
}
console.log(getLastLevelItems(data,id))
console