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

+ 47 - 1
user_web/src/view/student/trainChapter/trainChapter.vue

@@ -81,6 +81,23 @@
                         @carShutDown="carShutDownEvent"
                     ></CourseChapter3dView>
                 </div>
+
+                <!-- QV实训检测 -->
+                <div v-if="threeWorldLoadType == 'qv'">
+                    <QvSimulationMain
+                    v-show="QvSimulationMainLook == true"
+                    ></QvSimulationMain>
+
+                    <CarSimulationMain
+                    v-show="CarSimulationMainLook == true"
+                    @callbackChuanGongZuoFu="callbackChuanGongZuoFuQvEvent"
+                    ></CarSimulationMain>
+                </div>
+
+                <!-- 声纳实训检测 -->
+                <div v-if="threeWorldLoadType == 'sonar'">
+                    
+                </div>
                 
             </div>
         </div>
@@ -102,7 +119,17 @@ import { threeWorld } from '@/stores/threeWorld.ts';
 import { uploadFileOss, getLiteMeta } from '../../../util/fileUtils';
 import { ElMessage, ElMessageBox, ElNotification } from 'element-plus';
 import { studentTaskPhoto } from '@/api/techer/taskStudentScore';
-import { ModelHtml5Audio } from "../../../components/student/event/ModelHtml5Audio.ts";
+
+import QvSimulationMain from "../../../components/QvSimulation/QvSimulationMain.vue";
+import CarSimulationMain from "../../../components/CarSimulation/CarSimulationMain.vue";
+import SonarSimulationMain from "../../../components/SonarSimulation/SonarSimulationMain.vue";
+
+// 地下车是否可以展示
+let CarSimulationMainLook = ref(true);
+// QV检测是否可以展示
+let QvSimulationMainLook = ref(false);
+// 声纳车是否可以展示
+let SonarSimulationMainLook = ref(false);
 
 const route = useRoute();
 const taskId = route.params.taskId as string;
@@ -661,6 +688,25 @@ const getChapterTreeArray = (array : any) => {
 
 }
 
+/**
+ * QV穿完工作服回调
+ * bool
+ */
+const callbackChuanGongZuoFuQvEvent = (bool : any) => {
+
+    // console.log( "穿完工作服回调 callbackChuanGongZuoFuQvEvent ===> ", bool );
+
+    if (bool == true) {
+        QvSimulationMainLook.value = true;
+        CarSimulationMainLook.value = false;
+        return;
+    }
+
+    QvSimulationMainLook.value = false;
+    CarSimulationMainLook.value = true;
+
+}
+
 </script>
 <style lang="scss" scoped>
 .chapter-container {