From 370e2aa3aa67f99b2ccfe495d2cd1450f79c8a0d Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 24 九月 2024 11:41:44 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI

---
 WebTM/views/PublicPage/PowerInformation.html |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/WebTM/views/PublicPage/PowerInformation.html b/WebTM/views/PublicPage/PowerInformation.html
index 182ea2f..67f2c70 100644
--- a/WebTM/views/PublicPage/PowerInformation.html
+++ b/WebTM/views/PublicPage/PowerInformation.html
@@ -346,20 +346,9 @@
                 } else {
                     treeData.push(it)
                 }
-            })
-            // 閫掑綊杩囨护鎺夋病鏈夊瓙鑺傜偣鐨勯」
-            function filterTree(node) {
-                if (!node.children || node.children.length === 0) {
-                    return null; // 杩囨护鎺夋病鏈夊瓙鑺傜偣鐨勯」
-                }
-                node.children = node.children.map(filterTree).filter(n => n !== null);
-                return node;
-            }
-            // 瀵规瘡涓牴鑺傜偣搴旂敤杩囨护
-            treeData = treeData.map(filterTree).filter(n => n !== null);
+            })                      
             return treeData;
-        }
-
+        }      
     </script>
 
 </body>

--
Gitblit v1.9.1