let tree = [
{
"id": "f1b055b9-d5cf-4f3f-a43b-481d7c18014f",
"text": "220kV",
"nodes": [
{
"id": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"voltageClass": "f1b055b9-d5cf-4f3f-a43b-481d7c18014f",
"text": "H附近线路",
"nodes": [
{
"id": "3cc7ae96-102e-4b85-a905-f8f5d6742a1b",
"text": "4",
"nodes": [
{
"sysID": "5414250f-6397-4836-bf95-e71efb365ae9",
"id": "5414250f-6397-4836-bf95-e71efb365ae9",
"text": "H附近线路3",
"deviceNo": "H附近线路3",
"channels": [],
"sysTowerId": "3cc7ae96-102e-4b85-a905-f8f5d6742a1b",
"TowerNo": "4",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "H附近线路3",
"NCWatermark": "220kV-H附近线路-4-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
},
{
"sysID": "aac5f7a8-9d3b-459f-87c7-75dad7d48060",
"id": "aac5f7a8-9d3b-459f-87c7-75dad7d48060",
"text": "H附近线路4",
"deviceNo": "H附近线路4",
"channels": [],
"sysTowerId": "3cc7ae96-102e-4b85-a905-f8f5d6742a1b",
"TowerNo": "4",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "H附近线路4",
"NCWatermark": "220kV-H附近线路-4-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
},
{
"sysID": "618985f7-3bbe-476e-98f0-a49992bce10e",
"id": "618985f7-3bbe-476e-98f0-a49992bce10e",
"text": "H附近线路4",
"deviceNo": "H附近线路5",
"channels": [],
"sysTowerId": "3cc7ae96-102e-4b85-a905-f8f5d6742a1b",
"TowerNo": "4",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "H附近线路5",
"NCWatermark": "220kV-H附近线路-4-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
}
]
},
{
"id": "5b2a8714-5550-41eb-8cb4-bb7293c2bd1f",
"text": "5",
"nodes": [
{
"sysID": "b7d9afc6-d55a-4f00-b889-f3844266b7ea",
"id": "b7d9afc6-d55a-4f00-b889-f3844266b7ea",
"text": "H附近线路5",
"deviceNo": "0039附近线路3",
"channels": [],
"sysTowerId": "5b2a8714-5550-41eb-8cb4-bb7293c2bd1f",
"TowerNo": "5",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "0039附近线路3",
"NCWatermark": "220kV-H附近线路-5-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
},
{
"sysID": "aac5f7a8-9d3b-459f-87c7-75dad7d48060",
"id": "aac5f7a8-9d3b-459f-87c7-75dad7d48060",
"text": "H附近线路5",
"deviceNo": "H附近线路4",
"channels": [],
"sysTowerId": "5b2a8714-5550-41eb-8cb4-bb7293c2bd1f",
"TowerNo": "5",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "H附近线路4",
"NCWatermark": "220kV-H附近线路-5-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
},
{
"sysID": "618985f7-3bbe-476e-98f0-a49992bce10e",
"id": "618985f7-3bbe-476e-98f0-a49992bce10e",
"text": "H附近线路5",
"deviceNo": "H附近线路5",
"channels": [],
"sysTowerId": "5b2a8714-5550-41eb-8cb4-bb7293c2bd1f",
"TowerNo": "5",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "H附近线路5",
"NCWatermark": "220kV-H附近线路-5-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
}
]
},
{
"id": "624bde5f-7aea-4b76-98ee-0471f55f2371",
"text": "6",
"nodes": [
{
"sysID": "108c0b57-d5eb-4773-b427-82552aa734cd",
"id": "108c0b57-d5eb-4773-b427-82552aa734cd",
"text": "H附近线路6",
"deviceNo": "H附近线路6",
"channels": [],
"sysTowerId": "624bde5f-7aea-4b76-98ee-0471f55f2371",
"TowerNo": "6",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "H附近线路6",
"NCWatermark": "220kV-H附近线路-6-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
},
{
"sysID": "2232dc15-30ca-46e1-9c3a-4c49a2eedccc",
"id": "2232dc15-30ca-46e1-9c3a-4c49a2eedccc",
"text": "H附近线路6",
"deviceNo": "H附近线路7",
"channels": [],
"sysTowerId": "624bde5f-7aea-4b76-98ee-0471f55f2371",
"TowerNo": "6",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "H附近线路7",
"NCWatermark": "220kV-H附近线路-6-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
}
]
},
{
"id": "3b19ae09-ef2f-4cb8-b00e-dbd1d09fd2a5",
"text": "7",
"nodes": [
{
"sysID": "108c0b57-d5eb-4773-b427-82552aa734cd",
"id": "108c0b57-d5eb-4773-b427-82552aa734cd",
"text": "H附近线路7",
"deviceNo": "H附近线路6",
"channels": [],
"sysTowerId": "3b19ae09-ef2f-4cb8-b00e-dbd1d09fd2a5",
"TowerNo": "7",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "H附近线路6",
"NCWatermark": "220kV-H附近线路-7-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
},
{
"sysID": "2232dc15-30ca-46e1-9c3a-4c49a2eedccc",
"id": "2232dc15-30ca-46e1-9c3a-4c49a2eedccc",
"text": "H附近线路7",
"deviceNo": "H附近线路7",
"channels": [],
"sysTowerId": "3b19ae09-ef2f-4cb8-b00e-dbd1d09fd2a5",
"TowerNo": "7",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "H附近线路7",
"NCWatermark": "220kV-H附近线路-7-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
}
]
},
{
"id": "3436a2ac-8343-4a22-b417-2a7b915d0741",
"text": "8",
"nodes": [
{
"sysID": "5414250f-6397-4836-bf95-e71efb365ae9",
"id": "5414250f-6397-4836-bf95-e71efb365ae9",
"text": "H附近线路3",
"deviceNo": "H附近线路3",
"channels": [],
"sysTowerId": "3436a2ac-8343-4a22-b417-2a7b915d0741",
"TowerNo": "8",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "H附近线路3",
"NCWatermark": "220kV-H附近线路-8-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
},
{
"sysID": "a7885286-2172-4bcd-9c71-30a7357acd75",
"id": "a7885286-2172-4bcd-9c71-30a7357acd75",
"text": "H附近线路8",
"deviceNo": "H附近线路8",
"channels": [],
"sysTowerId": "3436a2ac-8343-4a22-b417-2a7b915d0741",
"TowerNo": "8",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "H附近线路8",
"NCWatermark": "220kV-H附近线路-8-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
},
{
"sysID": "b072c441-1612-4ead-8347-b6bfb1929f58",
"id": "b072c441-1612-4ead-8347-b6bfb1929f58",
"text": "H附近线路9",
"deviceNo": "H附近线路9",
"channels": [],
"sysTowerId": "3436a2ac-8343-4a22-b417-2a7b915d0741",
"TowerNo": "8",
"sysGridLineID": "e8891f7f-68b1-4f26-a18d-9c66c1c682d8",
"LineName": "H附近线路",
"ChannelId": "H附近线路9",
"NCWatermark": "220kV-H附近线路-8-大号侧---1",
"IsOnline": false,
"Association": "84024ad9-fea8-43f2-aa3c-75e190d75783",
"HavePatrolJournal": false
}
]
}
]
},
{
"id": "6469f87b-0f96-454f-bf2c-09c0bca5dc07",
"voltageClass": "f1b055b9-d5cf-4f3f-a43b-481d7c18014f",
"text": "lcy测试",
"nodes": [
{
"id": "ad2af0c9-da6a-4ce6-a7be-a0bda2b0cd05",
"text": "1",
"nodes": [
{
"sysID": "04db531e-39c7-4fee-bf2b-13cbec867a5c",
"id": "04db531e-39c7-4fee-bf2b-13cbec867a5c",
"text": "测试",
"deviceNo": "123456789",
"sysTowerId": "ad2af0c9-da6a-4ce6-a7be-a0bda2b0cd05",
"TowerNo": "1",
"sysGridLineID": "6469f87b-0f96-454f-bf2c-09c0bca5dc07",
"LineName": "lcy测试",
"ChannelId": "123456789",
"NCWatermark": "220kV-lcy测试-1-大号侧---1",
"IsOnline": false,
"Association": "6b562833-90ac-45fd-86df-5d0a1bc74dde",
"HavePatrolJournal": false,
"nodes": [
{
"id": "f85b1f47-a0ce-4c90-9b66-82243cb9edeb",
"deviceid": "04db531e-39c7-4fee-bf2b-13cbec867a5c",
"text": "1(1)",
"chno": 1,
"chid": ""
},
{
"id": "fc4568e4-213a-4777-a54a-4a684d29ffc9",
"deviceid": "04db531e-39c7-4fee-bf2b-13cbec867a5c",
"text": "2(2)",
"chno": 2,
"chid": ""
},
{
"id": "252c3eb2-5e59-4d94-98ab-b9840ea9a993",
"deviceid": "04db531e-39c7-4fee-bf2b-13cbec867a5c",
"text": "3(3)",
"chno": 3,
"chid": ""
}
]
}
]
},
{
"id": "31ea5c8d-40a9-4520-a6f4-04b99901d09d",
"text": "2",
"nodes": [
{
"sysID": "3710573c-ad5f-4871-a5dc-38bd2cc92726",
"id": "3710573c-ad5f-4871-a5dc-38bd2cc92726",
"text": "lcy测试2号塔",
"deviceNo": "lcy测试2号塔",
"channels": [],
"sysTowerId": "31ea5c8d-40a9-4520-a6f4-04b99901d09d",
"TowerNo": "2",
"sysGridLineID": "6469f87b-0f96-454f-bf2c-09c0bca5dc07",
"LineName": "lcy测试",
"ChannelId": "lcy测试2号塔",
"NCWatermark": "220kV-lcy测试-2-大号侧---1",
"IsOnline": false,
"Association": "6b562833-90ac-45fd-86df-5d0a1bc74dde",
"HavePatrolJournal": false
}
]
}
]
},
{
"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测试线路1号杆塔",
"deviceNo": "yzh测试线路1号杆塔",
"channels": [],
"sysTowerId": "c80dce9f-107c-4a99-8886-d7eb0375d4da",
"TowerNo": "20",
"sysGridLineID": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"LineName": "yzh测试线路",
"ChannelId": "yzh测试线路1号杆塔",
"NCWatermark": "220kV-yzh测试线路-20-大号侧---1",
"IsOnline": false,
"Association": "58b0fae5-76cd-4037-8433-0f8537cd4ac6",
"HavePatrolJournal": false
}
]
},
{
"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": "yzh测试线路21号杆塔",
"channels": [],
"sysTowerId": "fcc175ec-bb2d-4e03-8d9f-501ae1ced8a5",
"TowerNo": "21",
"sysGridLineID": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"LineName": "yzh测试线路",
"ChannelId": "yzh测试线路21号杆塔",
"NCWatermark": "220kV-yzh测试线路-21-大号侧---1",
"IsOnline": false,
"Association": "58b0fae5-76cd-4037-8433-0f8537cd4ac6",
"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": "yzh测试线路22号杆塔",
"channels": [],
"sysTowerId": "af9761b7-c8c0-4912-9795-cdc93754a480",
"TowerNo": "22",
"sysGridLineID": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"LineName": "yzh测试线路",
"ChannelId": "yzh测试线路22号杆塔",
"NCWatermark": "220kV-yzh测试线路-22-大号侧---1",
"IsOnline": false,
"Association": "5b438fd8-eb8b-4251-ac2c-bdaf94c980f5",
"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": "yzh测试线路23号杆塔",
"channels": [],
"sysTowerId": "c71d12be-25a1-45fd-801e-43c77a4bd68e",
"TowerNo": "23",
"sysGridLineID": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"LineName": "yzh测试线路",
"ChannelId": "yzh测试线路23号杆塔",
"NCWatermark": "220kV-yzh测试线路-23-大号侧---1",
"IsOnline": false,
"Association": "5b438fd8-eb8b-4251-ac2c-bdaf94c980f5",
"HavePatrolJournal": false
}
]
},
{
"id": "abe35452-5ed6-4688-a968-79c4cd7390eb",
"text": "24",
"nodes": [
{
"sysID": "fb058d8c-0423-4d39-9f57-a50447a2e2b3",
"id": "fb058d8c-0423-4d39-9f57-a50447a2e2b3",
"text": "yzh测试线路24号杆塔",
"deviceNo": "yzh测试线路24号杆塔",
"channels": [],
"sysTowerId": "abe35452-5ed6-4688-a968-79c4cd7390eb",
"TowerNo": "24",
"sysGridLineID": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"LineName": "yzh测试线路",
"ChannelId": "yzh测试线路24号杆塔",
"NCWatermark": "220kV-yzh测试线路-24-大号侧---1",
"IsOnline": false,
"Association": "f4a0ff1c-0b67-4505-8413-30319c7d9cc7",
"HavePatrolJournal": false
}
]
},
{
"id": "6e63d2ca-16af-448a-87f9-83a8010b3463",
"text": "25",
"nodes": [
{
"sysID": "052a3132-4b91-4882-ae29-8d96a1ec4b2b",
"id": "052a3132-4b91-4882-ae29-8d96a1ec4b2b",
"text": "yzh测试线路25号杆塔",
"deviceNo": "yzh测试线路25号杆塔",
"channels": [],
"sysTowerId": "6e63d2ca-16af-448a-87f9-83a8010b3463",
"TowerNo": "25",
"sysGridLineID": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"LineName": "yzh测试线路",
"ChannelId": "yzh测试线路25号杆塔",
"NCWatermark": "220kV-yzh测试线路-25-大号侧---1",
"IsOnline": false,
"Association": "f4a0ff1c-0b67-4505-8413-30319c7d9cc7",
"HavePatrolJournal": false
}
]
},
{
"id": "8e5e57a9-a213-4aa9-bc18-4163be56afee",
"text": "26",
"nodes": [
{
"sysID": "8c8deb89-f3a4-417d-8697-19f9b9ccd9f2",
"id": "8c8deb89-f3a4-417d-8697-19f9b9ccd9f2",
"text": "yzh测试线路26号杆塔",
"deviceNo": "yzh测试线路26号杆塔",
"channels": [],
"sysTowerId": "8e5e57a9-a213-4aa9-bc18-4163be56afee",
"TowerNo": "26",
"sysGridLineID": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"LineName": "yzh测试线路",
"ChannelId": "yzh测试线路26号杆塔",
"NCWatermark": "220kV-yzh测试线路-26-大号侧---1",
"IsOnline": false,
"Association": "f4a0ff1c-0b67-4505-8413-30319c7d9cc7",
"HavePatrolJournal": false
}
]
},
{
"id": "b40f8d0d-323d-4bf7-89bd-33e517fa0c42",
"text": "27",
"nodes": [
{
"sysID": "3dcc5a36-07d6-4e78-8d75-e70b746f87fe",
"id": "3dcc5a36-07d6-4e78-8d75-e70b746f87fe",
"text": "yzh测试线路27号杆塔",
"deviceNo": "yzh测试线路27号杆塔",
"channels": [],
"sysTowerId": "b40f8d0d-323d-4bf7-89bd-33e517fa0c42",
"TowerNo": "27",
"sysGridLineID": "0aac26a2-fe95-470e-bc63-38d7f0ad9f04",
"LineName": "yzh测试线路",
"ChannelId": "yzh测试线路27号杆塔",
"NCWatermark": "220kV-yzh测试线路-27-大号侧---1",
"IsOnline": false,
"Association": "f4a0ff1c-0b67-4505-8413-30319c7d9cc7",
"HavePatrolJournal": false
}
]
}
]
},
{
"id": "fcca1d11-ff1a-49b9-a7fa-143e65268de8",
"voltageClass": "f1b055b9-d5cf-4f3f-a43b-481d7c18014f",
"text": "ztz测试专线",
"nodes": [
{
"id": "44063bc0-251a-4bc4-b696-7e60fead696d",
"text": "1",
"nodes": [
{
"sysID": "7aaf28ed-59d1-4b84-8abc-e7a874a4b581",
"id": "7aaf28ed-59d1-4b84-8abc-e7a874a4b581",
"text": "ztz测试专线-1",
"deviceNo": "ztz测试专线-1",
"channels": [
{
"id": "30a77965-6afc-43f7-b00a-e6fcf625a2c8",
"deviceid": "7aaf28ed-59d1-4b84-8abc-e7a874a4b581",
"text": "1(1)",
"chno": 1,
"chid": "34010000002000391"
}
],
"sysTowerId": "44063bc0-251a-4bc4-b696-7e60fead696d",
"TowerNo": "1",
"sysGridLineID": "fcca1d11-ff1a-49b9-a7fa-143e65268de8",
"LineName": "ztz测试专线",
"ChannelId": "34010000002000391",
"NCWatermark": "220kV-ztz测试专线-1-大号侧--1(1)-1",
"IsOnline": false,
"Association": "f5ea90c0-980c-47b9-a6a2-e67ba76ee82a",
"HavePatrolJournal": false
}
]
},
{
"id": "cd8101f5-cab9-4c8b-a283-25e68ad45b1e",
"text": "2",
"nodes": [
{
"sysID": "10c07703-426b-4e11-b698-e3f89ad80368",
"id": "10c07703-426b-4e11-b698-e3f89ad80368",
"text": "34010000002000392",
"deviceNo": "34010000002000392",
"channels": [
{
"id": "cd8fcb66-af23-4830-a8e1-967c28beaa2c",
"deviceid": "10c07703-426b-4e11-b698-e3f89ad80368",
"text": "1(1)",
"chno": 1,
"chid": "34010000002000392"
}
],
"sysTowerId": "cd8101f5-cab9-4c8b-a283-25e68ad45b1e",
"TowerNo": "2",
"sysGridLineID": "fcca1d11-ff1a-49b9-a7fa-143e65268de8",
"LineName": "ztz测试专线",
"ChannelId": "34010000002000392",
"NCWatermark": "220kV-ztz测试专线-2-大号侧--1(1)-1",
"IsOnline": true,
"Association": "46196778-c430-41f4-aa23-999d2b5bd4f6",
"HavePatrolJournal": false
}
]
}
]
}
]
},
{
"id": "0f106455-7f91-4252-9af3-d45c0b741c3a",
"text": "110kV",
"nodes": [
{
"id": "cd809d8b-c236-49fc-b535-1d8e1b49f869",
"voltageClass": "0f106455-7f91-4252-9af3-d45c0b741c3a",
"text": "0039附近线路",
"nodes": [
{
"id": "031d3279-9340-4276-8712-605b7688df89",
"text": "1",
"nodes": [
{
"sysID": "f3a21d18-bca5-4a13-a8aa-14c9dbb66b5d",
"id": "f3a21d18-bca5-4a13-a8aa-14c9dbb66b5d",
"text": "0039附近线路",
"deviceNo": "3402000000112005Y",
"channels": [],
"sysTowerId": "031d3279-9340-4276-8712-605b7688df89",
"TowerNo": "1",
"sysGridLineID": "cd809d8b-c236-49fc-b535-1d8e1b49f869",
"LineName": "0039附近线路",
"ChannelId": "3402000000112005Y",
"NCWatermark": "110kV-0039附近线路-1-未知---1",
"IsOnline": true,
"Association": "6f691141-4f7a-48a0-8f5b-0bc1261d5a17",
"HavePatrolJournal": false
},
{
"sysID": "fe2203a5-b44b-4ad6-b1f4-f47a92737ef0",
"id": "fe2203a5-b44b-4ad6-b1f4-f47a92737ef0",
"text": "H附近线路1",
"deviceNo": "H附近线路1",
"channels": [],
"sysTowerId": "031d3279-9340-4276-8712-605b7688df89",
"TowerNo": "1",
"sysGridLineID": "cd809d8b-c236-49fc-b535-1d8e1b49f869",
"LineName": "0039附近线路",
"ChannelId": "H附近线路1",
"NCWatermark": "110kV-0039附近线路-1-大号侧---1",
"IsOnline": false,
"Association": "6f691141-4f7a-48a0-8f5b-0bc1261d5a17",
"HavePatrolJournal": false
}
]
},
{
"id": "12b6ba20-1877-41bf-b321-155836b8e756",
"text": "2",
"nodes": [
{
"sysID": "282150a5-b584-4cd0-a703-7b407d268ce8",
"id": "282150a5-b584-4cd0-a703-7b407d268ce8",
"text": "0039附近线路2",
"deviceNo": "0039附近线路2",
"channels": [],
"sysTowerId": "12b6ba20-1877-41bf-b321-155836b8e756",
"TowerNo": "2",
"sysGridLineID": "cd809d8b-c236-49fc-b535-1d8e1b49f869",
"LineName": "0039附近线路",
"ChannelId": "0039附近线路2",
"NCWatermark": "110kV-0039附近线路-2-大号侧---1",
"IsOnline": false,
"Association": "6f691141-4f7a-48a0-8f5b-0bc1261d5a17",
"HavePatrolJournal": false
},
{
"sysID": "5414250f-6397-4836-bf95-e71efb365ae9",
"id": "5414250f-6397-4836-bf95-e71efb365ae9",
"text": "H附近线路3",
"deviceNo": "H附近线路3",
"channels": [],
"sysTowerId": "12b6ba20-1877-41bf-b321-155836b8e756",
"TowerNo": "2",
"sysGridLineID": "cd809d8b-c236-49fc-b535-1d8e1b49f869",
"LineName": "0039附近线路",
"ChannelId": "H附近线路3",
"NCWatermark": "110kV-0039附近线路-2-大号侧---1",
"IsOnline": false,
"Association": "6f691141-4f7a-48a0-8f5b-0bc1261d5a17",
"HavePatrolJournal": false
}
]
},
{
"id": "c7d14a6c-4dd6-4b09-8035-310f8c1ec5ec",
"text": "3",
"nodes": [
{
"sysID": "b7d9afc6-d55a-4f00-b889-f3844266b7ea",
"id": "b7d9afc6-d55a-4f00-b889-f3844266b7ea",
"text": "0039附近线路3",
"deviceNo": "0039附近线路3",
"channels": [],
"sysTowerId": "c7d14a6c-4dd6-4b09-8035-310f8c1ec5ec",
"TowerNo": "3",
"sysGridLineID": "cd809d8b-c236-49fc-b535-1d8e1b49f869",
"LineName": "0039附近线路",
"ChannelId": "0039附近线路3",
"NCWatermark": "110kV-0039附近线路-3-大号侧---1",
"IsOnline": false,
"Association": "6f691141-4f7a-48a0-8f5b-0bc1261d5a17",
"HavePatrolJournal": false
},
{
"sysID": "618985f7-3bbe-476e-98f0-a49992bce10e",
"id": "618985f7-3bbe-476e-98f0-a49992bce10e",
"text": "0039附近线路3",
"deviceNo": "H附近线路5",
"channels": [],
"sysTowerId": "c7d14a6c-4dd6-4b09-8035-310f8c1ec5ec",
"TowerNo": "3",
"sysGridLineID": "cd809d8b-c236-49fc-b535-1d8e1b49f869",
"LineName": "0039附近线路",
"ChannelId": "H附近线路5",
"NCWatermark": "110kV-0039附近线路-3-大号侧---1",
"IsOnline": false,
"Association": "6f691141-4f7a-48a0-8f5b-0bc1261d5a17",
"HavePatrolJournal": false
}
]
}
]
},
{
"id": "18489715-a8c5-4423-adce-65366a24aaef",
"voltageClass": "0f106455-7f91-4252-9af3-d45c0b741c3a",
"text": "测试线路1",
"nodes": [
{
"id": "8684bbf5-cb6b-4478-a273-fc27e96a163f",
"text": "1",
"nodes": [
{
"sysID": "c3e087e5-67dd-4395-a374-ee32bcf6241b",
"id": "c3e087e5-67dd-4395-a374-ee32bcf6241b",
"text": "测试线路1",
"deviceNo": "测试线路1",
"channels": [],
"sysTowerId": "8684bbf5-cb6b-4478-a273-fc27e96a163f",
"TowerNo": "1",
"sysGridLineID": "18489715-a8c5-4423-adce-65366a24aaef",
"LineName": "测试线路1",
"ChannelId": "测试线路1",
"NCWatermark": "110kV-测试线路1-1-大号侧---1",
"IsOnline": false,
"Association": "0c5b8875-afd0-4157-80ed-7f338dc03d14",
"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": "3dadc7a6-6125-44cf-b0da-be3c3c8ffeb7",
"HavePatrolJournal": false,
"nodes": [
{
"id": "9cc4c04e-aaae-44b9-a818-d0be28dcafff",
"deviceid": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "1(1)",
"chno": 1,
"chid": "1"
},
{
"id": "45e1802e-b989-41b2-83b9-1d0dad7ce95f",
"deviceid": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "2(2)",
"chno": 2,
"chid": "2"
},
{
"id": "68368d44-e17a-44c8-aa53-63ccd4ab1b99",
"deviceid": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "3(3)",
"chno": 3,
"chid": "3"
}
]
},
{
"sysID": "01563109-c20e-4422-8f89-fa28a24cd19b",
"id": "01563109-c20e-4422-8f89-fa28a24cd19b",
"text": "江西富Ⅰ线1",
"deviceNo": "江西富Ⅰ线2",
"channels": [],
"sysTowerId": "792ac297-877d-45ac-95ae-be65a07a0645",
"TowerNo": "1",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "江西富Ⅰ线2",
"NCWatermark": "110kV-江西富Ⅰ线-1-大号侧---1",
"IsOnline": false,
"Association": "3dadc7a6-6125-44cf-b0da-be3c3c8ffeb7",
"HavePatrolJournal": false
}
]
},
{
"id": "be9fd33f-614b-4e2c-8014-c9fe625ec58a",
"text": "2",
"nodes": [
{
"sysID": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"id": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "3402000000222005Z",
"deviceNo": "3401000000112005Z",
"sysTowerId": "be9fd33f-614b-4e2c-8014-c9fe625ec58a",
"TowerNo": "2",
"sysGridLineID": "78d5b790-6acd-4308-b3b7-cc87da97ac96",
"LineName": "江西富Ⅰ线",
"ChannelId": "1",
"NCWatermark": "110kV-江西富Ⅰ线-2-小号侧--1(1)-1",
"IsOnline": true,
"Association": "3dadc7a6-6125-44cf-b0da-be3c3c8ffeb7",
"HavePatrolJournal": false,
"nodes": [
{
"id": "9cc4c04e-aaae-44b9-a818-d0be28dcafff",
"deviceid": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "1(1)",
"chno": 1,
"chid": "1"
},
{
"id": "45e1802e-b989-41b2-83b9-1d0dad7ce95f",
"deviceid": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "2(2)",
"chno": 2,
"chid": "2"
},
{
"id": "68368d44-e17a-44c8-aa53-63ccd4ab1b99",
"deviceid": "6d5d824f-ad5d-40ca-bfe3-b173b77e3a0a",
"text": "3(3)",
"chno": 3,
"chid": "3"
}
]
},
{
"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": "3dadc7a6-6125-44cf-b0da-be3c3c8ffeb7",
"HavePatrolJournal": false
}
]
},
{
"id": "0af1b5d4-e923-4aac-880e-5dc79da398e3",
"text": "3",
"nodes": [
{
"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": "3dadc7a6-6125-44cf-b0da-be3c3c8ffeb7",
"HavePatrolJournal": false
}
]
},
{
"id": "cf31b2e9-c289-4d68-a13d-24bfee4c5384",
"text": "4",
"nodes": [
{
"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": "3dadc7a6-6125-44cf-b0da-be3c3c8ffeb7",
"HavePatrolJournal": false
}
]
},
{
"id": "90bc946a-2bc6-440c-9a1a-e114dc0ed03b",
"text": "5",
"nodes": [
{
"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": "3dadc7a6-6125-44cf-b0da-be3c3c8ffeb7",
"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": "86253f1b-9b8c-4611-b2f6-0d98f71abcd8",
"HavePatrolJournal": false
}
]
}
]
}
]
}
]
let sysGridLineID = "0aac26a2-fe95-470e-bc63-38d7f0ad9f04"
let TowerIds = [
"af9761b7-c8c0-4912-9795-cdc93754a480",
"c71d12be-25a1-45fd-801e-43c77a4bd68e",
"fcc175ec-bb2d-4e03-8d9f-501ae1ced8a5"
]
// let nodeWithChildren = findNodeById(tree, sysGridLineID);
// console.log(nodeWithChildren)
// console.log(nodeWithChildren);
// let w= nodeWithChildren.nodes.filter(item=>TowerIds.includes(item.id))
// nodeWithChildren.nodes=w
// console.log('result',nodeWithChildren);
function filterTreeData(data, value) {
return data.filter(item => {
if (item.id === value) {
return true;
}
if (item.nodes) {
item.nodes = filterTreeData(item.nodes, value);
return item.nodes.length > 0;
}
return false;
});
}
let filteredData = filterTreeData(tree, sysGridLineID);
let towerIds = filteredData[0].nodes[0].nodes.filter(item => TowerIds.includes(item.id))
filteredData[0].nodes[0].nodes=towerIds
console.log(filteredData)
console