| | |
| | | methods: { |
| | | //二級菜单点击切换 |
| | | setChangeTwoMenu(res) { |
| | | this.$store.state.mapMenuBoolean = false; |
| | | this.$store.state.mapMenuBoxFlag = null; |
| | | this.$store.state.mapPopBoolean = false; |
| | | this.$store.state.mapPopBoxFlag = null; |
| | | var val = res.id[0]; |
| | | if (window.model != null) { |
| | | window.model.deleteObject(); |
| | |
| | | if (this.isMenuFlag == "d") { |
| | | this.clearAllAnalsy(); |
| | | } |
| | | |
| | | if (this.isMenuFlag != val) { |
| | | this.$store.state.mapMenuBoolean = false; |
| | | this.$store.state.mapMenuBoxFlag = null; |
| | | this.$store.state.mapPopBoolean = false; |
| | | this.$store.state.mapPopBoxFlag = null; |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | this.isMenuFlag = val; |
| | | if (this.entityaLayers.length != 0) { |
| | |
| | | setIquery(res) { |
| | | switch (res) { |
| | | case "e2": |
| | | this.$store.state.mapMenuBoolean = true; |
| | | this.$store.state.mapMenuBoolean = !this.$store.state.mapMenuBoolean; |
| | | this.$store.state.mapMenuBoxFlag = "1"; |
| | | break; |
| | | case "e1": |
| | | this.$store.state.mapMenuBoolean = true; |
| | | this.$store.state.mapMenuBoolean = !this.$store.state.mapMenuBoolean; |
| | | this.$store.state.mapMenuBoxFlag = "2"; |
| | | break; |
| | | } |
| | |
| | | PDelevationTool.render(); |
| | | break; |
| | | case "d3": //路径分析 |
| | | |
| | | this.isRouter = !this.isRouter; |
| | | let value; |
| | | if (this.isRouter) { |
| | | value = { |
| | | name: "Analysis", |
| | | id: 3, |
| | | show:true |
| | | }; |
| | | } else { |
| | | value = { |
| | | name: "close", |
| | | name: "Analysis", |
| | | id: 3, |
| | | show:false |
| | | }; |
| | | } |
| | | this.$bus.$emit("mapChangeBox", value); |
| | |
| | | ); |
| | | }, |
| | | setWander(res) { |
| | | debugger; |
| | | switch (res) { |
| | | |
| | | case "c1": |
| | | window.sgworld.Analysis.setPointFly(); |
| | | if (window.PointMY != null) { |
| | | window.PointMY.drawHandler && window.PointMY.drawHandler.destroy(); |
| | | window.PointMY.end && window.PointMY.end(); |
| | | window.PointMY = null; |
| | | } else { |
| | | window.PointMY = window.sgworld.Analysis.setPointFly(); |
| | | } |
| | | break; |
| | | case "c2": |
| | | var url = window.location.href; |
| | |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | border: 1px solid rgba(0, 0, 0, 0); |
| | | padding: 10px; |
| | | padding: 5px; |
| | | min-width: 100px; |
| | | margin-left: 10px; |
| | | margin-top: 10px; |
| | |
| | | } |
| | | |
| | | .menuTwoImage { |
| | | width: 40px; |
| | | height: 40px; |
| | | width: 30px; |
| | | height: 30px; |
| | | display: inline-block; |
| | | } |
| | | } |