Commit 5537fbfc authored by xiexingan's avatar xiexingan

tj

parent b3311544
......@@ -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)
this.list = []
subNode.children.forEach((res) => {
this.list.push(res)
})
// this.list = []
// subNode.children.forEach((res) => {
// this.list.push(res)
// })
this.list.forEach((res) => {
Vue.set(res, 'active', false)
})
console.log(this.list)
this.changeVectorLayer(this.list)
// 点亮对应的marker
let feature = this.vectorLayer.getSource().getFeatureById(id)
console.log(feature)
if (feature) {
for (let i in this.list) {
if (feature.id_ == that.list[i].id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment