jinx vor 1 Jahr
Ursprung
Commit
af5039ee96
3 geänderte Dateien mit 13 neuen und 9 gelöschten Zeilen
  1. 9 8
      src/views/scene/container.vue
  2. 1 1
      src/views/scene/index.vue
  3. 3 0
      src/views/tables/explorate-one.vue

+ 9 - 8
src/views/scene/container.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="canvas-layout">
-    <p v-if="currentMeterPerPixel" class="meterPerPixel">1: {{ currentMeterPerPixel }}</p>
+    <p v-if="currentMeterPerPixel && viewStatus" class="meterPerPixel">1: {{ currentMeterPerPixel }}</p>
     <div class="scene-canvas" ref="sceneLayoutRef" />
   </div>
 </template>
@@ -18,7 +18,12 @@ import { sceneSeting } from "@/store/sceneSeting";
 const emit = defineEmits<{ (e: "loaded"): void }>();
 const sceneLayoutRef = ref<HTMLCanvasElement>();
 const active = ref(true);
-
+const props = defineProps({
+  viewStatus: {
+    type: Boolean,
+    default: false,
+  },
+});
 onActivated(() => (active.value = true));
 onDeactivated(() => (active.value = false));
 
@@ -48,9 +53,7 @@ onMounted(async () => {
   emit("loaded");
 
   sdk.scene.on("posChange", (pos) => {
-    currentMeterPerPixel.value = pos.meterPerPixel
-      ? Math.round(1 / pos.meterPerPixel)
-      : null;
+    currentMeterPerPixel.value = pos.meterPerPixel ? Math.round(1 / pos.meterPerPixel) : null;
   });
 
   if (!sceneSeting.value) {
@@ -74,9 +77,7 @@ onMounted(async () => {
   // 90
   setTimeout(() => {
     watchEffect(() => {
-      const doms = Array.from(
-        sceneLayoutRef.value.querySelectorAll("#navCube, #home")
-      ) as HTMLElement[];
+      const doms = Array.from(sceneLayoutRef.value.querySelectorAll("#navCube, #home")) as HTMLElement[];
       if (!disabledMap.mode) {
         if (customMap.mode === Mode.pano) {
           doms.forEach((dom) => {

+ 1 - 1
src/views/scene/index.vue

@@ -12,7 +12,7 @@
     <div class="info-layout" ref="layoutRef">
       <div class="info-top">
         <div class="info-top-left" :class="{ full: viewStatus }">
-          <Container @loaded="loaded = true" />
+          <Container @loaded="loaded = true" :viewStatus="viewStatus" />
           <template v-if="loaded && !trackMode">
             <Menus v-if="viewStatus" @active="(data) => (activeMenuKeys = data)" @enter-child="childPage = true" @leave-child="childPage = false" />
             <!-- v-if="currentView" -->

+ 3 - 0
src/views/tables/explorate-one.vue

@@ -136,12 +136,14 @@
                         <span>经度:</span>
                         <div class="input-box">
                           <input type="text" v-model="data.longitude" />
+                          <div class="content-box left">{{ data.longitude }}</div>
                         </div>
                       </div>
                       <div class="latitude">
                         <span>纬度:</span>
                         <div>
                           <input type="text" v-model="data.latitude" />
+                          <div class="content-box left">{{ data.latitude }}</div>
                         </div>
                       </div>
                     </div>
@@ -150,6 +152,7 @@
                     <div class="pos-item-name" style="height: 54px">地点描述</div>
                     <div class="pos-msg desc input-box" style="height: 54px">
                       <input type="text" v-model="data.addressDesc" />
+                      <div class="content-box left">{{ data.addressDesc }}</div>
                     </div>
                   </div>
                 </div>