|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <AppHeader v-show="!fscChecked" :project="project" />
|
|
|
+ <AppHeader v-show="!fscChecked" :project="project" :show-adjust="showAdjust" />
|
|
|
<article>
|
|
|
<main>
|
|
|
<div class="split" v-if="source">
|
|
@@ -40,6 +40,7 @@
|
|
|
</div>
|
|
|
</main>
|
|
|
</article>
|
|
|
+ <AppFooter v-if="showAdjust" />
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
@@ -47,9 +48,14 @@ import { ref, onMounted, computed, nextTick } from 'vue'
|
|
|
import { http } from '@/utils/request'
|
|
|
import browser from '@/utils/browser'
|
|
|
import AppHeader from '@/components/header'
|
|
|
+import AppFooter from '@/components/footer'
|
|
|
import Calendar from '@/components/calendar'
|
|
|
import sync, { loadSourceScene, loadTargetScene } from '@/utils/sync'
|
|
|
|
|
|
+// 是否校准模式
|
|
|
+const showSplit = ref(browser.urlHasValue('split'))
|
|
|
+const showAdjust = ref(browser.urlHasValue('adjust'))
|
|
|
+
|
|
|
const bimChecked = ref(null)
|
|
|
const dbsChecked = ref(null)
|
|
|
const fscChecked = ref(null)
|
|
@@ -63,7 +69,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,6 +154,7 @@ const targetDays = computed(() => {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+
|
|
|
const onLoadSource = () => {
|
|
|
if (bimChecked.value && !dbsChecked.value) {
|
|
|
// BIM单屏模式
|
|
@@ -352,7 +359,7 @@ onMounted(() => {
|
|
|
project.value = response.data
|
|
|
if (project.value.sceneList.length) {
|
|
|
source.value = project.value.sceneList[0]
|
|
|
- if (adjust.value) {
|
|
|
+ if (showAdjust.value || showSplit.value) {
|
|
|
onBimChecked()
|
|
|
nextTick(() => onDbsChecked())
|
|
|
}
|