人生啊人生 3 ヶ月 前
コミット
636be68930

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

@@ -37,6 +37,7 @@ import { QvPanelStore } from "@/components/QvSimulation/QvPanel/store/QvPanelSto
 import { QvPanelEvent } from "@/components/QvSimulation/QvPanel/js/QvPanelEvent.js";
 QvPanelEvent.find().ComStore["QvPanelStore"] = QvPanelStore;
 
+import { QvPipeEvent } from "./QvThreeWorldEvent/js/QvPipeEvent.js";
 
 import { computed, onMounted, onUnmounted, watch, ref } from "vue";
 import { useRouter } from 'vue-router';
@@ -47,6 +48,14 @@ QvComRes.find().resJson["mp4_qv"] = new URL("./assets/mp4/qv.mp4", import.meta.u
 QvComRes.find().resJson["mp4_demo"] = new URL("./assets/mp4/demo.mp4", import.meta.url).href;
 
 
+const props = defineProps({
+    // 获取当前学生任务ID缺陷列表
+    studentTaskIdList : {
+        type: Object
+    },
+});
+
+
 // 定义发射给父组件的方法
 const emits = defineEmits([
     'callbackProcessUpdate',
@@ -99,6 +108,12 @@ onMounted(function() {
     //     commonDemo();
     // }, 1000);
     
+    console.log(
+        "QV 获取的问题管段的列表 studentTaskIdList ===>", props.studentTaskIdList
+    );
+
+    QvPipeEvent.find().studentTaskIdList = props.studentTaskIdList;
+    
 });
 
 /**

+ 13 - 1
user_web/src/components/QvSimulation/QvThreeWorldEvent/js/QvPipeEvent.js

@@ -116,6 +116,12 @@ export class QvPipeEvent {
             },
         };
 
+        /**
+         * 记录当前学生的问题管段列表
+         * 当有记录的时候,则生成的问题管段,就以这里的顺序生成
+         */
+        this.studentTaskIdList = null;
+
     }
 
     // 实现单例模式
@@ -213,7 +219,7 @@ export class QvPipeEvent {
 
 
     /**
-     * 随机个顺序进行测试
+     * 随机个顺序管段排序
      */
     rndList = function() {
         
@@ -329,6 +335,12 @@ export class QvPipeEvent {
                 }
             }
         ];
+        
+        console.log("QV this.studentTaskIdList ===>", this.studentTaskIdList);
+
+        if (this.studentTaskIdList != null && this.studentTaskIdList != undefined) {
+            studentTaskIdList = this.studentTaskIdList;
+        }
 
         let getPipelineIssuesArray = this.getPipelineIssuesArray(studentTaskIdList);
         console.log(

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

@@ -121,6 +121,7 @@
                 <div v-if="threeWorldLoadType == 'qv'">
                     <QvSimulationMain
                     v-show="QvSimulationMainLook == true"
+                    :studentTaskIdList="studentTaskIdList"
                     @callbackProcessUpdate="callbackProcessUpdateQvEvent"
                     ></QvSimulationMain>
 
@@ -432,10 +433,11 @@ onMounted(() => {
             courseChapter3dViewBool.value = true;
 
             // console.log(
-            //     "根据学生id任务获取缺陷数据",
+            //     "根据学生id任务获取缺陷数据 ===>",
             //     studentTaskIdList.value,
             //     studentTaskId
             // );
+
         })
         .catch((error) => {
             courseChapter3dViewBool.value = true;