rindy 2 years ago
parent
commit
7938ecc1eb
2 changed files with 6 additions and 4 deletions
  1. 3 1
      src/components/header/index.vue
  2. 3 3
      src/pages/Viewer.vue

+ 3 - 1
src/components/header/index.vue

@@ -98,12 +98,14 @@ const onCancel = () => {
 }
 const onSubmit = () => {
     http.post(`smart-site/project/updatePanos`, {
-        projet_id: props.project.projectId,
+        projectId: props.project.projectId,
         panos: JSON.stringify(points.value),
     })
         .then(response => {
             if (response.success) {
                 window.location.href = window.location.href.replace('&adjust', '&split')
+            }else {
+                alert(response.message)
             }
         })
         .catch(() => {})

+ 3 - 3
src/pages/Viewer.vue

@@ -4,7 +4,7 @@
         <main>
             <div class="split" v-if="source">
                 <iframe ref="sourceFrame" :src="sourceURL" frameborder="0" @load="onLoadSource"></iframe>
-                <div class="tools" v-show="!fscChecked && (dbsChecked || (!target && !bimChecked))">
+                <div class="tools" v-show="!showAdjust && !fscChecked && (dbsChecked || (!target && !bimChecked))">
                     <div class="item-date">
                         <calendar name="source" :value="sourceDate" :highlighted="sourceDays" @selected="onSelected" @pick="onPickDate" @prev="onPrevDate" @next="onNextDate"></calendar>
                     </div>
@@ -42,7 +42,7 @@
                     </div>
                 </div>
             </div>
-            <div class="model">
+            <div class="model" v-show="!showAdjust">
                 <div class="bim" :class="{ active: bimChecked }" v-show="!fscChecked">
                     <div @click="onBimChecked">
                         <i class="iconfont icon-BIM"></i>
@@ -116,7 +116,7 @@ const sourceURL = computed(() => {
 })
 const targetURL = computed(() => {
     if (bimChecked.value) {
-        return `smart-bim.html?m=${source.value.num}`
+        return `smart-bim.html?m=${target.value.num}`
     }
 
     if (source.value.type < 2) {