人生啊人生 vor 2 Monaten
Ursprung
Commit
aefe8b1f88

+ 19 - 0
src/components/ThreeWorldEventQingXiCheAndQv/QingXiCheAndQvMain.vue

@@ -22,6 +22,23 @@ import { WindowVideoRemoveColorStore } from "@/components/WindowQingXiCheAndQv/s
 
 import { WindowEvent } from "../WindowQingXiCheAndQv/js/WindowEvent.js";
 
+
+
+// 定义发射给父组件的方法
+const emits = defineEmits([
+    // 回调进度
+    'callbackProgress',
+]);
+
+/**
+ * 回调进度
+ */
+const callbackProgressEvent = (json) => {
+    emits('callbackProgress', json);
+}
+
+
+
 /**
  * 接下来要操作的步骤
  * json
@@ -33,6 +50,8 @@ const callbackProcessEvent = (json) => {
 
     console.log("清洗车 或者 QV 的 当前切换到的步骤", config);
 
+    callbackProgressEvent(config);
+
     // 进入触发当前步骤的逻辑
     QingXiCheAndQvCarEvent.find().typeEvent(config.name);
 

+ 15 - 1
src/view/student/trainChapter/trainChapter.vue

@@ -89,7 +89,7 @@
                     @carShutDown="carShutDownEvent"
                 ></CourseChapter3dView> -->
                 
-                <QingXiCheAndQvMain></QingXiCheAndQvMain>
+                <QingXiCheAndQvMain @callbackProgress="callbackProgressQingXiCheAndQv" ></QingXiCheAndQvMain>
 
             </div>
         </div>
@@ -641,6 +641,20 @@ const dataURLtoBlob = (dataurl: any) => {
     }
     return new Blob([u8arr], { type: mime });
 };
+
+/**
+ * 清洗车自定义回调步骤
+ */
+const callbackProgressQingXiCheAndQv = (json : any) => {
+    console.log("callbackProgressQingXiCheAndQv ===>", json);
+
+    // 完成所有步骤
+    if (json.name == "equipmentRepositioningWork") {
+        stepTipsLook.value = true;
+    }
+
+}
+
 </script>
 <style lang="scss" scoped>
 .chapter-container {