人生啊人生 пре 3 месеци
родитељ
комит
28d7b26392
1 измењених фајлова са 50 додато и 0 уклоњено
  1. 50 0
      user_web/src/view/student/trainChapter/trainChapter.vue

+ 50 - 0
user_web/src/view/student/trainChapter/trainChapter.vue

@@ -142,6 +142,15 @@
                 <!-- 声纳实训检测 -->
                 <div v-if="threeWorldLoadType == 'sonar'">
                     
+                    <CarSimulationMain
+                    v-show="CarSimulationMainLook == true"
+                    @callbackShengNa="callbackShengNaEvent"
+                    ></CarSimulationMain>
+
+                    <SonarSimulationMain
+                    v-show="SonarSimulationMainLook == true"
+                    @callbackDownWell="callbackDownWellShengNaEvent" ></SonarSimulationMain>
+
                 </div>
                 
             </div>
@@ -875,6 +884,47 @@ const callbackChuanGongZuoFuQvEvent = (bool : any) => {
 
 }
 
+/**
+ * 是否回到声纳车逻辑
+ * bool
+ */
+const callbackShengNaEvent = (bool : any) => {
+
+    console.log(
+        "是否回到声纳车逻辑 callbackShengNaEvent", bool
+    );
+
+    if (bool == true) {
+        CarSimulationMainLook.value = false;
+        SonarSimulationMainLook.value = true;
+        return;
+    }
+
+    CarSimulationMainLook.value = true;
+    SonarSimulationMainLook.value = false;
+
+}
+
+/**
+ * 声纳 是否触发下井逻辑
+ * bool
+ */
+const callbackDownWellShengNaEvent = (bool : any) => {
+    console.log(
+        "是否触发下井逻辑 callbackDownWellShengNaEvent", bool
+    );
+
+    if (bool == true) {
+        CarSimulationMainLook.value = true;
+        SonarSimulationMainLook.value = false;
+        return;
+    }
+
+    CarSimulationMainLook.value = false;
+    SonarSimulationMainLook.value = true;
+
+}
+
 /**
  * QV仿真每次进入新逻辑
  */