人生啊人生 há 3 semanas atrás
pai
commit
a7f84da0b1

+ 26 - 0
user_web/src/api/studentTaskFoundation.ts

@@ -0,0 +1,26 @@
+import request from '@/util/request.ts';
+
+/**
+ * 学生任务基础信息接口 - 新增基础信息
+ * @param data 
+ * @returns 
+ */
+export function studentTaskFoundationAdd(data : any) {
+    return request({
+        url: '/studentTaskFoundation/add',
+        method: 'post',
+        data: data,
+    });
+}
+
+/**
+ * 学生任务基础信息接口 - 根据学生任务id查询基础信息
+ */
+export function studentTaskFoundationGetByStudentTaskId(params : any) {
+    return request({
+        method: "get",
+        url: "/studentTaskFoundation/getByStudentTaskId",
+        params: params
+    });
+}
+

+ 1 - 0
user_web/src/components/student/courseChapter3d/showDownHole.vue

@@ -2,6 +2,7 @@
 <script setup lang="ts">
 import { onMounted, watch, ref } from 'vue';
 import { courseChapter3dShow } from "@/stores/courseChapter3dShow.ts";
+import { studentTaskFoundationAdd, studentTaskFoundationGetByStudentTaskId } from "@/api/studentTaskFoundation.ts";
 
 // watch(
 //     () => courseChapter3dShow().show.showCongratulationsViewBool,