Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
ddc798b2
Commit
ddc798b2
authored
Jun 06, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复节点搜索的问题
parent
dce09d39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
asset-tree.component.ts
src/app/elements/asset-tree/asset-tree.component.ts
+6
-2
No files found.
src/app/elements/asset-tree/asset-tree.component.ts
View file @
ddc798b2
...
@@ -206,10 +206,11 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
...
@@ -206,10 +206,11 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
if
(
!
children
)
{
if
(
!
children
)
{
return
[];
return
[];
}
}
let
all_children
=
[];
children
.
forEach
((
n
)
=>
{
children
.
forEach
((
n
)
=>
{
return
[...
children
,
...
this
.
recurseChildren
(
n
)];
all_children
=
[...
children
,
...
this
.
recurseChildren
(
n
)];
});
});
return
[]
;
return
all_children
;
}
}
filter
()
{
filter
()
{
...
@@ -221,6 +222,9 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
...
@@ -221,6 +222,9 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
const
nodes
=
zTreeObj
.
transformToArray
(
zTreeObj
.
getNodes
());
const
nodes
=
zTreeObj
.
transformToArray
(
zTreeObj
.
getNodes
());
if
(
!
_keywords
)
{
if
(
!
_keywords
)
{
zTreeObj
.
showNodes
(
nodes
);
zTreeObj
.
showNodes
(
nodes
);
zTreeObj
.
expandAll
(
false
);
const
root
=
zTreeObj
.
getNodes
()[
0
];
zTreeObj
.
expandNode
(
root
);
return
null
;
return
null
;
}
}
let
shouldShow
=
[];
let
shouldShow
=
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment