|
@@ -43,7 +43,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref, onMounted, computed } from 'vue'
|
|
|
+import { ref, onMounted, computed, nextTick } from 'vue'
|
|
|
import { http } from '@/utils/request'
|
|
|
import browser from '@/utils/browser'
|
|
|
import AppHeader from '@/components/header'
|
|
@@ -63,6 +63,7 @@ const mode = ref(0)
|
|
|
const source = ref(null)
|
|
|
const target = ref(null)
|
|
|
const project = ref(null)
|
|
|
+const adjust = ref(browser.urlHasValue('adjust'))
|
|
|
|
|
|
const scenes = computed(() => {
|
|
|
if (!project.value) {
|
|
@@ -148,7 +149,7 @@ const targetDays = computed(() => {
|
|
|
})
|
|
|
|
|
|
const onLoadSource = () => {
|
|
|
- if (bimChecked.value) {
|
|
|
+ if (bimChecked.value && !dbsChecked.value) {
|
|
|
// BIM单屏模式
|
|
|
return
|
|
|
}
|
|
@@ -159,7 +160,7 @@ const onLoadTarget = () => {
|
|
|
if (bimChecked.value) {
|
|
|
loadTargetScene(targetFrame, 'bim')
|
|
|
} else {
|
|
|
- loadTargetScene(targetFrame, target.value.type < 2 ? 'kankan' : 'laser',mode.value)
|
|
|
+ loadTargetScene(targetFrame, target.value.type < 2 ? 'kankan' : 'laser', mode.value)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -351,6 +352,10 @@ onMounted(() => {
|
|
|
project.value = response.data
|
|
|
if (project.value.sceneList.length) {
|
|
|
source.value = project.value.sceneList[0]
|
|
|
+ if (adjust.value) {
|
|
|
+ onBimChecked()
|
|
|
+ nextTick(() => onDbsChecked())
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
alert('获取数据失败')
|