Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
Z
zhxf_vue
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
葛齐林
zhxf_vue
Commits
5537fbfc
Commit
5537fbfc
authored
May 12, 2021
by
xiexingan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
b3311544
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
index.vue
src/pages/ol/demo/index.vue
+7
-5
No files found.
src/pages/ol/demo/index.vue
View file @
5537fbfc
...
@@ -1024,19 +1024,21 @@ export default {
...
@@ -1024,19 +1024,21 @@ export default {
}
}
})
})
//资源点
//资源点
let
subNode
=
this
.
$refs
.
tree
.
getNode
(
node
.
tierId
+
sysId
).
data
//
let subNode = this.$refs.tree.getNode(node.tierId + sysId).data
// console.log('当前要选中的层级节点', subNode)
// console.log('当前要选中的层级节点', subNode)
this
.
list
=
[]
//
this.list = []
subNode
.
children
.
forEach
((
res
)
=>
{
//
subNode.children.forEach((res) => {
this
.
list
.
push
(
res
)
//
this.list.push(res)
})
//
})
this
.
list
.
forEach
((
res
)
=>
{
this
.
list
.
forEach
((
res
)
=>
{
Vue
.
set
(
res
,
'active'
,
false
)
Vue
.
set
(
res
,
'active'
,
false
)
})
})
console
.
log
(
this
.
list
)
this
.
changeVectorLayer
(
this
.
list
)
this
.
changeVectorLayer
(
this
.
list
)
// 点亮对应的marker
// 点亮对应的marker
let
feature
=
this
.
vectorLayer
.
getSource
().
getFeatureById
(
id
)
let
feature
=
this
.
vectorLayer
.
getSource
().
getFeatureById
(
id
)
console
.
log
(
feature
)
if
(
feature
)
{
if
(
feature
)
{
for
(
let
i
in
this
.
list
)
{
for
(
let
i
in
this
.
list
)
{
if
(
feature
.
id_
==
that
.
list
[
i
].
id
)
{
if
(
feature
.
id_
==
that
.
list
[
i
].
id
)
{
...
...
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