| | |
| | | } |
| | | } |
| | | this.showTwoMenuFlag = res.id; |
| | | if (val != 'h') { |
| | | if (val != 'h' && res.id != "b9") { |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | Viewer.entities.removeAll(); |
| | | } |
| | |
| | | case "b9": //地下模式 |
| | | // this.UndergroundMode = !this.UndergroundMode; |
| | | // window.sgworld.Analysis.UndergroundMode(this.UndergroundMode, 0.3); |
| | | this.$refs && |
| | | this.$refs.undergroundModel && |
| | | this.$refs.undergroundModel.open("地下模式", null,); |
| | | if (window.UndergroundMode) { |
| | | this.$refs && |
| | | this.$refs.undergroundModel && |
| | | this.$refs.undergroundModel.close(); |
| | | } else { |
| | | this.$refs && |
| | | this.$refs.undergroundModel && |
| | | this.$refs.undergroundModel.open("地下模式", null,); |
| | | } |
| | | |
| | | break; |
| | | } |
| | | }, |
| | |
| | | }); |
| | | var value = std.filter((str) => { |
| | | if (str.url != null && str.type == 2 && str.isShow == 1) { |
| | | |
| | | return str; |
| | | } |
| | | }) |
| | | |
| | | this.setAddLayers(value); |
| | | |
| | | var res = this.setTreeData(val); |
| | | |
| | | //存储选中图层 |
| | | // sessionStorage.setItem("checkedLayers", JSON.stringify(checkedLayers)); |
| | | |
| | | for (var i in res) { |
| | | res[i].children = res[i].children.filter((val) => { |
| | | if (val.children != null) { |
| | | return val; |
| | | } |
| | | }); |
| | | } |
| | | // for (var i in res) { |
| | | // res[i].children = res[i].children.filter((val) => { |
| | | // if (val.children != null) { |
| | | // return val; |
| | | // } |
| | | // }); |
| | | // } |
| | | |
| | | this.$store.state.treeData = res; |
| | | |
| | |
| | | const res = await dataQuery_selectTabByEntity({ |
| | | name: this.$store.state.pickoption.name |
| | | }) |
| | | |
| | | if (res.code != 200) { |
| | | return; |
| | | } |
| | |
| | | if (data.code != 200) { |
| | | return |
| | | } |
| | | |
| | | var valste = data.result |
| | | |
| | | |