|
@@ -3,6 +3,7 @@
|
|
|
<i class="sxdx-scroll scroll-left" @click="handleSxdxScroll('left')"></i>
|
|
|
<i class="sxdx-scroll scroll-right" @click="handleSxdxScroll('right')"></i>
|
|
|
<i class="switch-btn type-switch" @click="handleChangeType()"></i>
|
|
|
+<!-- 切换视角-->
|
|
|
<i class="switch-btn view-switch" @click="handleChangeView()"></i>
|
|
|
<el-carousel
|
|
|
trigger="click"
|
|
@@ -120,6 +121,7 @@ function handleChooseSxdx(i, type) {
|
|
|
})
|
|
|
|
|
|
addLayerByName(sxdxCurrent.value,true)
|
|
|
+ addLayerByName("pm_"+sxdxCurrent.value,true)
|
|
|
|
|
|
|
|
|
}
|
|
@@ -140,25 +142,15 @@ const currentView = ref('up')
|
|
|
// 切换视角
|
|
|
function handleChangeView() {
|
|
|
setSxdxCamera()
|
|
|
- // if(currentView.value==='up') {
|
|
|
- // if(currentType==='lashen') {
|
|
|
- // // 拉伸视角
|
|
|
- // ueCallFlyToSXDXStretch()
|
|
|
- // } else {
|
|
|
- // ueCallFlyToSXDXNew()
|
|
|
- // }
|
|
|
- // currentView.value = 'down'
|
|
|
- // } else {
|
|
|
- // ueCallFlyToSXDX()
|
|
|
- // currentView.value = 'up'
|
|
|
- // }
|
|
|
}
|
|
|
|
|
|
const currentType = ref('lashen')
|
|
|
|
|
|
-// 切换类型
|
|
|
+// 打开断面
|
|
|
function handleChangeType() {
|
|
|
- currentType.value = currentType.value==='lashen'? 'pingmian': 'lashen'
|
|
|
+
|
|
|
+ addLayerByName("pm_"+sxdxCurrent.value,false)
|
|
|
+ // currentType.value = currentType.value==='lashen'? 'pingmian': 'lashen'
|
|
|
}
|
|
|
|
|
|
|