|
@@ -2,9 +2,9 @@
|
|
|
<AppHeader v-show="!fscChecked" :project="project" :show-adjust="showAdjust" @update="onPointsUpdate" />
|
|
|
<article>
|
|
|
<main>
|
|
|
- <div class="split" v-if="source">
|
|
|
- <iframe ref="sourceFrame" :src="sourceURL" frameborder="0" @load="onLoadSource"></iframe>
|
|
|
- <div class="tools" v-show="!showAdjust && !fscChecked && (dbsChecked || (!target && !bimChecked))">
|
|
|
+ <div class="split">
|
|
|
+ <iframe ref="sourceFrame" v-if="sourceURL" :src="sourceURL" frameborder="0" @load="onLoadSource"></iframe>
|
|
|
+ <div class="tools" v-if="source" v-show="!showAdjust && !fscChecked && (dbsChecked || (!target && !bimChecked))">
|
|
|
<div class="item-date">
|
|
|
<calendar name="source" :count="scenes.length" :value="sourceDate" :highlighted="sourceDays" @selected="onSelected" @pick="onPickDate" @prev="onPrevDate" @next="onNextDate"></calendar>
|
|
|
</div>
|
|
@@ -115,6 +115,10 @@ const sourceURL = computed(() => {
|
|
|
return `smart-bim.html?m=${project.value.bimData.bimOssFilePath}`
|
|
|
}
|
|
|
|
|
|
+ if(!source.value){
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if (source.value.type < 2) {
|
|
|
// 看看、看见场景
|
|
|
return `smart-kankan.html?m=${source.value.num}&dev`
|
|
@@ -427,6 +431,7 @@ onMounted(() => {
|
|
|
.then(response => {
|
|
|
if (response.success) {
|
|
|
if (response.data) {
|
|
|
+ document.title = response.data.projectName
|
|
|
if (response.data.panos) {
|
|
|
try {
|
|
|
response.data.panos = JSON.parse(response.data.panos)
|
|
@@ -440,7 +445,10 @@ onMounted(() => {
|
|
|
|
|
|
}
|
|
|
project.value = response.data
|
|
|
- if (project.value.sceneList.length) {
|
|
|
+ if (showBim.value) {
|
|
|
+ onBimChecked()
|
|
|
+ }
|
|
|
+ else if (project.value.sceneList.length) {
|
|
|
if (num) {
|
|
|
source.value = project.value.sceneList.find(c => c.num == num)
|
|
|
}
|
|
@@ -450,8 +458,6 @@ onMounted(() => {
|
|
|
if (showAdjust.value || showSplit.value) {
|
|
|
onBimChecked()
|
|
|
nextTick(() => onDbsChecked())
|
|
|
- } else if (showBim.value) {
|
|
|
- onBimChecked()
|
|
|
}
|
|
|
}
|
|
|
}
|