人生啊人生 3 mēneši atpakaļ
vecāks
revīzija
521fe831a3

+ 23 - 0
user_web/src/components/QvSimulation/QvSimulationMain.vue

@@ -49,6 +49,13 @@ QvComRes.find().resJson["mp4_demo"] = new URL("./assets/mp4/demo.mp4", import.me
 
 
 const props = defineProps({
+    // 重置流程到第一个流程
+    processInitRestTime : {
+        type: String,
+        default : function() {
+            return "0";
+        }
+    },
     // 获取当前学生任务ID缺陷列表
     studentTaskIdList : {
         type: Object
@@ -84,6 +91,22 @@ watch(
     }
 );
 
+watch(
+    () => props.processInitRestTime,
+    (newVal, oldVal) => {
+        
+        // console.log(
+        //     "是否触发重置流程的逻辑 props.processInitRestTime ===>",
+        //     props.processInitRestTime
+        // );
+        
+        if (QvMyThreeWorldStore().loadSuccess == true) {
+            ProcessInit();
+        }
+
+    }
+);
+
 /**
  * 接下来要操作的步骤
  * json

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

@@ -127,6 +127,7 @@
                     <QvSimulationMain
                     v-show="QvSimulationMainLook == true"
                     :studentTaskIdList="studentTaskIdList"
+                    :processInitRestTime="processInitRestTimeQv"
                     @callbackProcessUpdate="callbackProcessUpdateQvEvent"
                     ></QvSimulationMain>
 
@@ -220,6 +221,8 @@ let menuBoxOpen = ref(true);
  * 默认null ,则先不触发加载
  */
 let threeWorldLoadType : any = ref(null);
+// 控制QV三维里的逻辑重置回第一流程逻辑
+let processInitRestTimeQv = ref("0");
 
 let chapterQueue: Array<Array<anyObj>> = [];
 let maxChapterNum = 0;
@@ -520,6 +523,13 @@ watch(
                 menuBoxOpen.value = true;
                 stepThreeWorldEndOk.value = false;
             }
+
+            if (state.currentChapter.threeDimensionalConfig == 'QV仿真实验') {
+                processInitRestTimeQv.value = "" + new Date().getTime();
+                CarSimulationMainLook.value = true;
+                QvSimulationMainLook.value = false;
+            }
+
         }
         
     }