人生啊人生 2 週間 前
コミット
b279a8a374

+ 25 - 1
user_web/src/components/student/courseChapter3d/showCarEye.vue

@@ -3,6 +3,7 @@
     import { threeWorld } from "@/stores/threeWorld.ts";
     import { courseChapter3dShow } from "@/stores/courseChapter3dShow.ts";
     import { onMounted, watch, ref } from 'vue';
+    import { studentTaskFoundationAdd, studentTaskFoundationGetByStudentTaskId } from "@/api/studentTaskFoundation.ts";
 
     // 定义发射给父组件的方法
     const emits = defineEmits([
@@ -74,8 +75,31 @@
 
     }
 
-    onMounted(() => {
 
+    // 获取填写的数据
+    const studentTaskFoundationGetByStudentTaskIdEvent = () => {
+
+        studentTaskFoundationGetByStudentTaskId({
+            studentTaskId : courseChapter3dShow().show.studentTaskId,
+        }).then(res => {
+
+            try {
+
+                let db = res?.data?.data;
+
+                console.log("获取填写的数据------ db", db);
+
+            } catch (e) {}
+
+            
+        }).catch(error => {
+
+        });
+
+    }
+
+    onMounted(() => {
+        studentTaskFoundationGetByStudentTaskIdEvent();
         courseChapter3dShow().show.showCarEyeViewBoolPrompt = true;
 
     });