shuishen
2021-06-15 171dc150c1bd6345040820e48f34884c2db374f6
目录树调整
1 files modified
19 ■■■■■ changed files
widgets/LeftNavigationBar/Widget.js 19 ●●●●● patch | view | raw | blame | history
widgets/LeftNavigationBar/Widget.js
@@ -390,6 +390,7 @@
                            // console.log(obj.data.id, '--', obj.checked, obj); //得到当前点击的节点数据
                            // console.log(obj.checked); //得到当前节点的展开状态:open、close、normal
                            // console.log(obj.elem); //得到当前节点元素
                            var keyId = that.getUrlKeyId("serviceId");
                            if (obj.data.children && obj.data.children.length > 0) {
@@ -436,6 +437,7 @@
                                            });
                                        });
                                    } else {
                                        obj.data.children.forEach(item => {
                                            $.ajax({
                                                url: item.src + '/maps.json',
@@ -447,9 +449,18 @@
                                                        url: res[0].path,
                                                    }));
                                                    that[item.id].alpha = item.alpha
                                                    if (keyId && keyId != "") {
                                                        that[item.id].getViewableRectangle().then(function (rectangle) {
                                                            return that.map.camera.flyTo({
                                                                destination: rectangle
                                                            });
                                                        });
                                                    }
                                                }
                                            })
                                        });
                                    }
@@ -530,6 +541,14 @@
                                                    url: res[0].path,
                                                }));
                                                that[obj.data.id].alpha = obj.data.alpha
                                                if (keyId && keyId != "") {
                                                    that[obj.data.id].getViewableRectangle().then(function (rectangle) {
                                                        return that.map.camera.flyTo({
                                                            destination: rectangle
                                                        });
                                                    });
                                                }
                                            }
                                        })