| | |
| | | <PropertyGroup> |
| | | <NameOfLastUsedPublishProfile>D:\智云迈思\MES\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <ProjectView>ProjectFiles</ProjectView> |
| | | <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>true</UseIISExpress> |
| | | <Use64BitIISExpress /> |
| | | <IISExpressSSLPort /> |
| | |
| | | } 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> |