From c052c07d74b052f923b9a711b014baa62e11442a Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期一, 26 十二月 2022 15:05:44 +0800 Subject: [PATCH] 场景 --- src/views/Synthesis/LeftMenu.vue | 161 +++++++++++++++++++++++++++++++---------------------- 1 files changed, 94 insertions(+), 67 deletions(-) diff --git a/src/views/Synthesis/LeftMenu.vue b/src/views/Synthesis/LeftMenu.vue index d064587..1b87891 100644 --- a/src/views/Synthesis/LeftMenu.vue +++ b/src/views/Synthesis/LeftMenu.vue @@ -6,12 +6,20 @@ v-for="(item, index) in setListTwoMenu" :class="{ lefMenuDivActive: showTwoMenuFlag == item.id }" > - <div class="menuTwoImage" :class="item.css"></div> + <div + class="menuTwoImage" + :class="item.css" + ></div> <div>{{ $t(item.label) }}</div> </div> <mapinfo ref="mapinfo" /> <maplayer ref="maplayer" /> - <input type="file" accept=".kml" class="file" style="display: none" /> + <input + type="file" + accept=".kml" + class="file" + style="display: none" + /> </div> </template> @@ -34,7 +42,7 @@ name: '鍥惧眰绠$悊', css: 'twoMenu_imge11', }, - + ], [ { @@ -111,7 +119,7 @@ name: '鍦板浘蹇収', css: 'twoMenu_imge34', }, - + ], [ { @@ -290,8 +298,8 @@ name: '娓呴櫎', css: 'twoMenu_imge87', }, - ],[ - { + ], [ + { id: 'i1', name: '鍦烘櫙鎻愬彇', label: 'synthesis.sceneExtraction', @@ -356,6 +364,7 @@ sgworld.Creator.SimpleGraphic.edit(true, { editProp: true }); this.setPlot(res.id); break; + } }, setPlot(res) { @@ -364,28 +373,28 @@ sgworld.Creator.createSimpleGraphic( 'point', {}, - function (entity) {} + function (entity) { } ); break; case 'h2': sgworld.Creator.createSimpleGraphic( 'polyline', {}, - function (entity) {} + function (entity) { } ); break; case 'h3': sgworld.Creator.createSimpleGraphic( 'rectangle', {}, - function (entity) {} + function (entity) { } ); break; case 'h4': sgworld.Creator.createSimpleGraphic( 'polygon', {}, - function (entity) {} + function (entity) { } ); break; case 'h5': @@ -483,6 +492,24 @@ }; fileInput.click(); }, + setLayerScene() { + + var URL = window.location.href.split("#"); + this.openwindow({ url: URL[0] + 'LfSKyline/index.html' }); + }, + + openwindow(data) { + var url = data.url; //杞悜缃戦〉鐨勫湴鍧�; + var name = data.title || '閫夋嫨瑕佹坊鍔犵殑椤甸潰'; //缃戦〉鍚嶇О锛屽彲涓虹┖; + var iWidth = window.screen.width; //寮瑰嚭绐楀彛鐨勫搴�; + var iHeight = window.screen.height; //寮瑰嚭绐楀彛鐨勯珮搴�; + var iTop = 0 //鑾峰緱绐楀彛鐨勫瀭鐩翠綅缃�; + var iLeft = 0; //鑾峰緱绐楀彛鐨勬按骞充綅缃�; + window.open(url, name, 'height=' + iHeight + ',,innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no'); + }, + + + setMeasurement(res) { switch (res) { case 'j1': @@ -569,9 +596,8 @@ 'auto', (data) => { if (volumetricMeasurementTool.popupData) { - volumetricMeasurementTool.popupData.value = `濉柟锛�${ - data.volume.fill.toFixed(4) + data.unit.fill - }<br>鎸栨柟锛�${data.volume.dig.toFixed(4) + data.unit.dig}`; + volumetricMeasurementTool.popupData.value = `濉柟锛�${data.volume.fill.toFixed(4) + data.unit.fill + }<br>鎸栨柟锛�${data.volume.dig.toFixed(4) + data.unit.dig}`; } else { data.id = window.sgworld.Core.getuid(); this.measureData.set(data.id, volumetricMeasurementTool); @@ -618,9 +644,8 @@ }); break; case '浣撶Н鏂归噺': - info = `濉柟锛�${ - data.volume.fill.toFixed(4) + data.unit.fill - }<br>鎸栨柟锛�${data.volume.dig.toFixed(4) + data.unit.dig}`; + info = `濉柟锛�${data.volume.fill.toFixed(4) + data.unit.fill + }<br>鎸栨柟锛�${data.volume.dig.toFixed(4) + data.unit.dig}`; break; } return ( @@ -709,9 +734,8 @@ 'auto', (data) => { if (volumetricMeasurementTool.popupData) { - volumetricMeasurementTool.popupData.value = `濉柟锛�${ - data.volume.fill.toFixed(4) + data.unit.fill - }<br>鎸栨柟锛�${data.volume.dig.toFixed(4) + data.unit.dig}`; + volumetricMeasurementTool.popupData.value = `濉柟锛�${data.volume.fill.toFixed(4) + data.unit.fill + }<br>鎸栨柟锛�${data.volume.dig.toFixed(4) + data.unit.dig}`; } else { data.id = sgworld.Core.getuid(); this.measureData.set(data.id, volumetricMeasurementTool); @@ -777,7 +801,7 @@ window.Excavation = sgworld.Analysis.TerrainExcavation( 10, {}, - function () {} + function () { } ); } break; @@ -824,10 +848,9 @@ 2, 2, method, - (value) => {} + (value) => { } ); }, - addterrainSectionAnalysis() { window.AnalysisDXPM = sgworld.Command.execute( 2, @@ -974,7 +997,11 @@ polygon: Cesium.Color.fromCssColorString('#ffff00').withAlpha(0.6), }; this.$bus.$on('setChangeTwoMenu', (res) => { - this.menuChange(res); + + if (res == 8) { this.setLayerScene(); } else { + this.menuChange(res); + } + }); this.$bus.$on('showLeftMenu', (res) => { this.$store.state.showAllLayers = true; @@ -1023,167 +1050,167 @@ } .twoMenu_imge11 { - background: url('../../assets/img/synthesis/鍥惧眰 32.png') no-repeat center; + background: url("../../assets/img/synthesis/鍥惧眰 32.png") no-repeat center; } .twoMenu_imge12 { - background: url('../../assets/img/synthesis/鍥惧眰 35.png') no-repeat center; + background: url("../../assets/img/synthesis/鍥惧眰 35.png") no-repeat center; } .twoMenu_imge13 { - background: url('../../assets/img/synthesis/鍙戝竷.png') no-repeat center; + background: url("../../assets/img/synthesis/鍙戝竷.png") no-repeat center; } //瑙嗗浘 .twoMenu_imge21 { - background: url('../../assets/img/synthesis/鍦嗚鐭╁舰 12 鎷疯礉 3.png') + background: url("../../assets/img/synthesis/鍦嗚鐭╁舰 12 鎷疯礉 3.png") no-repeat center; } .twoMenu_imge22 { - background: url('../../assets/img/synthesis/鍥惧眰 10 鎷疯礉.png') no-repeat + background: url("../../assets/img/synthesis/鍥惧眰 10 鎷疯礉.png") no-repeat center; } .twoMenu_imge23 { - background: url('../../assets/img/synthesis/鍥惧眰 11 鎷疯礉.png') no-repeat + background: url("../../assets/img/synthesis/鍥惧眰 11 鎷疯礉.png") no-repeat center; } .twoMenu_imge24 { - background: url('../../assets/img/synthesis/鍥惧眰 12 鎷疯礉 2.png') no-repeat + background: url("../../assets/img/synthesis/鍥惧眰 12 鎷疯礉 2.png") no-repeat center; } .twoMenu_imge25 { - background: url('../../assets/img/synthesis/鍦嗚鐭╁舰 5 鎷疯礉 2.png') + background: url("../../assets/img/synthesis/鍦嗚鐭╁舰 5 鎷疯礉 2.png") no-repeat center; } .twoMenu_imge26 { - background: url('../../assets/img/synthesis/鍦嗚鐭╁舰 5 鎷疯礉 3.png') + background: url("../../assets/img/synthesis/鍦嗚鐭╁舰 5 鎷疯礉 3.png") no-repeat center; } .twoMenu_imge27 { - background: url('../../assets/img/synthesis/鐭╁舰 9.png') no-repeat center; + background: url("../../assets/img/synthesis/鐭╁舰 9.png") no-repeat center; } .twoMenu_imge28 { - background: url('../../assets/img/synthesis/妞渾 4.png') no-repeat center; + background: url("../../assets/img/synthesis/妞渾 4.png") no-repeat center; } //婕父 .twoMenu_imge31 { - background: url('../../assets/img/synthesis/妞渾 6.png') no-repeat center; + background: url("../../assets/img/synthesis/妞渾 6.png") no-repeat center; } .twoMenu_imge32 { - background: url('../../assets/img/synthesis/妞渾 7 鎷疯礉 2.png') no-repeat + background: url("../../assets/img/synthesis/妞渾 7 鎷疯礉 2.png") no-repeat center; } .twoMenu_imge33 { - background: url('../../assets/img/synthesis/鍥惧眰 14 鍓湰 鎷疯礉.png') + background: url("../../assets/img/synthesis/鍥惧眰 14 鍓湰 鎷疯礉.png") no-repeat center; } .twoMenu_imge34 { - background: url('../../assets/img/synthesis/鍥惧眰 74 鎷疯礉 2.png') no-repeat + background: url("../../assets/img/synthesis/鍥惧眰 74 鎷疯礉 2.png") no-repeat center; } .twoMenu_imge35 { - background: url('../../assets/img/synthesis/妞渾 7 鎷疯礉 4.png') no-repeat + background: url("../../assets/img/synthesis/妞渾 7 鎷疯礉 4.png") no-repeat center; } //鍒嗘瀽 .twoMenu_imge41 { - background: url('../../assets/img/synthesis/妞渾 8 鎷疯礉 8.png') no-repeat + background: url("../../assets/img/synthesis/妞渾 8 鎷疯礉 8.png") no-repeat center; } .twoMenu_imge42 { - background: url('../../assets/img/synthesis/鍦嗚鐭╁舰 12 鎷疯礉 5.png') + background: url("../../assets/img/synthesis/鍦嗚鐭╁舰 12 鎷疯礉 5.png") no-repeat center; } .twoMenu_imge43 { - background: url('../../assets/img/synthesis/鍦嗚鐭╁舰 10 鍓湰 3.png') + background: url("../../assets/img/synthesis/鍦嗚鐭╁舰 10 鍓湰 3.png") no-repeat center; } .twoMenu_imge44 { - background: url('../../assets/img/synthesis/鍥惧眰 74 鎷疯礉 3.png') no-repeat + background: url("../../assets/img/synthesis/鍥惧眰 74 鎷疯礉 3.png") no-repeat center; } .twoMenu_imge45 { - background: url('../../assets/img/synthesis/鍥惧眰 20.png') no-repeat center; + background: url("../../assets/img/synthesis/鍥惧眰 20.png") no-repeat center; } .twoMenu_imge46 { - background: url('../../assets/img/synthesis/鍥惧眰 14 鎷疯礉 3.png') no-repeat + background: url("../../assets/img/synthesis/鍥惧眰 14 鎷疯礉 3.png") no-repeat center; } .twoMenu_imge47 { - background: url('../../assets/img/synthesis/鍥惧眰 18.png') no-repeat center; + background: url("../../assets/img/synthesis/鍥惧眰 18.png") no-repeat center; } .twoMenu_imge48 { - background: url('../../assets/img/synthesis/鍦嗚鐭╁舰 12 鎷疯礉 6.png') + background: url("../../assets/img/synthesis/鍦嗚鐭╁舰 12 鎷疯礉 6.png") no-repeat center; } .twoMenu_imge49 { - background: url('../../assets/img/synthesis/绠¢亾.png') no-repeat center; + background: url("../../assets/img/synthesis/绠¢亾.png") no-repeat center; } .twoMenu_imge410 { - background: url('../../assets/img/synthesis/dxkw.png') no-repeat center; + background: url("../../assets/img/synthesis/dxkw.png") no-repeat center; } .twoMenu_imge411 { - background: url('../../assets/img/synthesis/鐭╁舰 14 鎷疯礉 7.png') no-repeat + background: url("../../assets/img/synthesis/鐭╁舰 14 鎷疯礉 7.png") no-repeat center; } //鏌ヨ .twoMenu_imge51 { - background: url('../../assets/img/synthesis/鍥惧眰 23.png') no-repeat center; + background: url("../../assets/img/synthesis/鍥惧眰 23.png") no-repeat center; } .twoMenu_imge52 { - background: url('../../assets/img/synthesis/绌洪棿鏌ヨ.png') no-repeat center; + background: url("../../assets/img/synthesis/绌洪棿鏌ヨ.png") no-repeat center; } //瀹氫綅 .twoMenu_imge61 { - background: url('../../assets/img/synthesis/鍥惧眰 27.png') no-repeat center; + background: url("../../assets/img/synthesis/鍥惧眰 27.png") no-repeat center; } .twoMenu_imge62 { - background: url('../../assets/img/synthesis/鍥惧眰 28.png') no-repeat center; + background: url("../../assets/img/synthesis/鍥惧眰 28.png") no-repeat center; } //娴嬮噺 .twoMenu_imge71 { - background: url('../../assets/img/synthesis/鍥惧眰 31.png') no-repeat center; + background: url("../../assets/img/synthesis/鍥惧眰 31.png") no-repeat center; } .twoMenu_imge72 { - background: url('../../assets/img/synthesis/鍥惧眰 31 鎷疯礉.png') no-repeat + background: url("../../assets/img/synthesis/鍥惧眰 31 鎷疯礉.png") no-repeat center; } .twoMenu_imge73 { - background: url('../../assets/img/synthesis/鐭╁舰 13 鎷疯礉.png') no-repeat + background: url("../../assets/img/synthesis/鐭╁舰 13 鎷疯礉.png") no-repeat center; } .twoMenu_imge74 { - background: url('../../assets/img/synthesis/鍥惧眰 18 鎷疯礉.png') no-repeat + background: url("../../assets/img/synthesis/鍥惧眰 18 鎷疯礉.png") no-repeat center; } .twoMenu_imge75 { - background: url('../../assets/img/synthesis/M 鎷疯礉.png') no-repeat center; + background: url("../../assets/img/synthesis/M 鎷疯礉.png") no-repeat center; } .twoMenu_imge76 { - background: url('../../assets/img/synthesis/绌洪棿娴嬭窛.png') no-repeat center; + background: url("../../assets/img/synthesis/绌洪棿娴嬭窛.png") no-repeat center; } //鏍囩粯 .twoMenu_imge81 { - background: url('../../assets/img/synthesis/妞渾 5 鎷疯礉 3.png') no-repeat + background: url("../../assets/img/synthesis/妞渾 5 鎷疯礉 3.png") no-repeat center; } .twoMenu_imge82 { - background: url('../../assets/img/synthesis/妞渾 3 鎷疯礉 16.png') no-repeat + background: url("../../assets/img/synthesis/妞渾 3 鎷疯礉 16.png") no-repeat center; } .twoMenu_imge83 { - background: url('../../assets/img/synthesis/妞渾 3 鎷疯礉 20.png') no-repeat + background: url("../../assets/img/synthesis/妞渾 3 鎷疯礉 20.png") no-repeat center; } .twoMenu_imge84 { - background: url('../../assets/img/synthesis/妞渾 3 鎷疯礉 23.png') no-repeat + background: url("../../assets/img/synthesis/妞渾 3 鎷疯礉 23.png") no-repeat center; } .twoMenu_imge85 { - background: url('../../assets/img/synthesis/瀵煎叆.png') no-repeat center; + background: url("../../assets/img/synthesis/瀵煎叆.png") no-repeat center; } .twoMenu_imge86 { - background: url('../../assets/img/synthesis/瀵煎嚭.png') no-repeat center; + background: url("../../assets/img/synthesis/瀵煎嚭.png") no-repeat center; } .twoMenu_imge87 { - background: url('../../assets/img/synthesis/娓呴櫎.png') no-repeat center; + background: url("../../assets/img/synthesis/娓呴櫎.png") no-repeat center; } } </style> -- Gitblit v1.9.3