Преглед на файлове

同步前端南街口和更改

liyanbo преди 10 месеца
родител
ревизия
68d15796b6

BIN
public/li-bai.glb


BIN
public/nezha2.glb


BIN
public/niu-dun.glb


BIN
public/niudun-tiaowu.glb


BIN
public/niudun-zhanli.glb


BIN
public/niudunBackground.png


BIN
public/niudunBackground2.png


+ 1 - 1
src/api/bjdx/course/index.ts

@@ -55,6 +55,6 @@ export const CourseApi = {
 
   // 根据类型id获取课程列表
   getCourseByTypeId: async (typeId: String) => {
-    return await request.get({ url: `/bjdx/web/course/getCourseByTypeId?typeId=` + typeId })
+    return await request.get({ url: `/bjdxWeb/course/getCourseByTypeId?typeId=` + typeId })
   }
 }

+ 2 - 2
src/api/bjdx/coursetype/index.ts

@@ -45,10 +45,10 @@ export const CourseTypeApi = {
 
   // 获取年级
   getTypeGrade: async () => {
-    return request.get({ url: '/bjdx/web/course/getTypeGrade'})
+    return request.get({ url: '/bjdxWeb/course/getTypeGrade'})
   },
   // 根据年级id获取课程大纲
   getTypeByGradeId: async (id: number) => {
-    return request.get({ url: '/bjdx/web/course/getTypeByGradeId?id=' + id })
+    return request.get({ url: '/bjdxWeb/course/getTypeByGradeId?id=' + id })
   }
 }

+ 5 - 4
src/config/axios/index.ts

@@ -20,11 +20,12 @@ const request = (option: any) => {
 export default {
   get: async <T = any>(option: any) => {
     const res = await request({ method: 'GET', ...option })
-    return res.data as unknown as T
+    console.log("res",res)
+    return res?.data as unknown as T
   },
   post: async <T = any>(option: any) => {
     const res = await request({ method: 'POST', ...option })
-    return res.data as unknown as T
+    return res?.data as unknown as T
   },
   postOriginal: async (option: any) => {
     const res = await request({ method: 'POST', ...option })
@@ -32,11 +33,11 @@ export default {
   },
   delete: async <T = any>(option: any) => {
     const res = await request({ method: 'DELETE', ...option })
-    return res.data as unknown as T
+    return res?.data as unknown as T
   },
   put: async <T = any>(option: any) => {
     const res = await request({ method: 'PUT', ...option })
-    return res.data as unknown as T
+    return res?.data as unknown as T
   },
   download: async <T = any>(option: any) => {
     const res = await request({ method: 'GET', responseType: 'blob', ...option })

+ 0 - 1
src/views/ai/chat/index/index.vue

@@ -170,7 +170,6 @@ const getConversation = async (id: number | null) => {
   activeConversation.value = conversation
   activeConversationId.value = conversation.id
   activeConversationModelPath.value = conversation.modelPath
-  console.log("=====================-=-=",conversation)
 }
 
 /**

+ 1 - 1
src/views/bjdx/course/CourseForm.vue

@@ -24,7 +24,7 @@
       </el-form-item>
 
 
-      <el-form-item label="课程名称" prop="courseName">
+      <el-form-item label="内容类型" prop="courseName">
         <el-segmented v-model="formData.courseContentType" :options="getStrDictOptions(DICT_TYPE.COURSE_COUTNET_TYPE)" />
       </el-form-item>
 

+ 3 - 3
src/views/bjdx/course/CoursePreview.vue

@@ -25,7 +25,7 @@
       <div class="video-container" style="margin-top: 20px">
         <video
           ref="videoRef"
-          :src="courseInfo.coursePath"
+          :src="courseInfo.courseVideoPath"
           controls
           width="100%"
           height="480px"
@@ -73,8 +73,8 @@ const title = ref('课程预览')
 const videoRef = ref<HTMLVideoElement | null>(null)
 // 试题数据(示例,可根据实际接口调整)
 const examQuestions = ref<any[]>([
-  // { id: 1, content: '问题1:这是测试题吗?', options: ['是', '否'], ccTime: 3 },
-  // { id: 2, content: '问题2:正确答案是?', options: ['A', 'B', 'C'], ccTime: 6 }
+  { id: 1, content: '问题1:这是测试题吗?', options: ['是', '否'], ccTime: 3 },
+  { id: 2, content: '问题2:正确答案是?', options: ['A', 'B', 'C'], ccTime: 6 }
 ])
 // 当前显示的试题
 const currentQuestion = ref<any>(null);

+ 2 - 1
src/views/bjdx/course/index.vue

@@ -277,7 +277,7 @@ const getList = async () => {
 }
 
 /** 搜索按钮操作 */
-const handleQuery = () => {
+const handleQuery = async () => {
   queryParams.pageNo = 1
   getList()
 }
@@ -336,6 +336,7 @@ const handleExport = async () => {
 const getCourseTypeTree = async () => {
   courseTypeTree.value = []
   const data = await CourseTypeApi.getCourseTypeList()
+  console.log(data)
   const root: Tree = { id: 0, ctType: '课程类型', children: [] }
   root.children = handleTree(data, 'id', 'ctParentId')
   courseTypeTree.value.push(root)