diff --git a/src/api/user/stud.js b/src/api/user/stud.js index d86c210..651a3f5 100644 --- a/src/api/user/stud.js +++ b/src/api/user/stud.js @@ -13,10 +13,17 @@ export const stuNumberService = (params) => { `/api/studentManage/page?number=${params.number}&page=${params.page}&pageSize=${params.pagesize}&userId=${params.id}`, ) } -//获取学生 -// export const stuListService = (id) => { -// return request.get(`/api/studentManage/${id}`) +//获取一行的学生信息 +export const stuListService = (id) => { + return request.get(`/api/studentManage/${id}`) +} +// export function getById(id) { +// return request.get(`/api/studentManage/${id}`); // } +//修改 +export const updateStuService = (params) => { + return request.put(`/api/studentManage`, params) +} //删除和批量删除学生 export const delStuListService = (ids) => { return request.delete(`/api/studentManage/batchDelete?ids=${ids}`) diff --git a/src/api/user/user.js b/src/api/user/user.js index 84b69b7..aa12c86 100644 --- a/src/api/user/user.js +++ b/src/api/user/user.js @@ -40,26 +40,17 @@ export const userIdenService = (id) => { return request.post('/api/user/personal/info?id=' + id) } //修改个人信息 -export const userIdenChangeService = (dataToSend) => { - return request.post('/api/user/update/PersonalInfo', dataToSend, { - headers: { 'Content-Type': 'application/json;charset=UTF-8' }, - }) +export const userIdenChangeService = (params) => { + // return request.post('/api/user/update/PersonalInfo', params, { + // headers: { 'Content-Type': 'application/json;charset=UTF-8' }, + // }) + return request.post(`/api/user/update/PersonalInfo`, params) } //修改密码 export const userChangePasswordService = (dataToSend) => { return request.post('/api/user/updatePassword', dataToSend) } -//获取排名靠前的课程 -export const userToplessonService = () => request.get('#') -//获取最新收藏的课程 -export const userNewLikeService = (id) => { - return request.post('/api/course_favour/newCollect?userId=' + id) -} -//获取学生列表 -export const userStudentListService = (id) => { - return request.post('/api/coursesteacher/studentList?userId=' + id) -} //获取课程列表 export const userLessonListService = (id) => { return request.post('/api/courselearingrecord/courseList?userId=' + id) @@ -76,3 +67,23 @@ export const userPicService = () => { export const userMaxKnowService = (id) => { return request.post('/api/knowledgelearning/studyMaxKnowledge?userId=' + id) } +//获取推荐课程 +export const userToplessonService = (userId) => { + return request.post( + `/api/courselearingrecord/recommendCourses?userId=${userId}`, + ) +} +//获取推荐知识点 +export const userTopKnowService = (userId) => { + return request.post( + `/api/knowledgelearning/recommendKnowledge?userId=${userId}`, + ) +} +//获取最新收藏的课程 +export const userNewLikeService = (id) => { + return request.post('/api/course_favour/newCollect?userId=' + id) +} +//获取学生列表 +export const userStudentListService = (id) => { + return request.post('/api/coursesteacher/studentList?userId=' + id) +} diff --git a/src/layout/logo/index.vue b/src/layout/logo/index.vue index a753e7c..be8f11e 100644 --- a/src/layout/logo/index.vue +++ b/src/layout/logo/index.vue @@ -1,7 +1,9 @@ @@ -32,24 +34,59 @@ export default { } diff --git a/src/setting.ts b/src/setting.ts index 7734acc..e02d00d 100644 --- a/src/setting.ts +++ b/src/setting.ts @@ -1,6 +1,6 @@ // 用于项目logo 标题配置 export default { - title: '教学一体化后台', //项目标题 + title: '课图——首个开源课程知识图谱管理系统', //项目标题 logo: '/public/vite.svg', //项目logo logoHidden: true, // logo隐藏设置 'files.associations': { diff --git a/src/styles/variable.scss b/src/styles/variable.scss index 9bf72d9..7ffb3de 100644 --- a/src/styles/variable.scss +++ b/src/styles/variable.scss @@ -9,6 +9,6 @@ $base-menu-background:#ffffff; // 顶部导航高度 $base-tabbar-height:50px; // 左侧菜单logo高度 -$base-menu-logo-height:50px; +$base-menu-logo-height:70px; // 左侧菜单标题文字大小 -$base-menu-logo-title-size:20px; +$base-menu-logo-title-size:13px; diff --git a/src/views/course/components/KnowledgeGraphUi/FoldAdd.vue b/src/views/course/components/KnowledgeGraphUi/FoldAdd.vue index 09e0b36..bf7f832 100644 --- a/src/views/course/components/KnowledgeGraphUi/FoldAdd.vue +++ b/src/views/course/components/KnowledgeGraphUi/FoldAdd.vue @@ -1,5 +1,4 @@ diff --git a/src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue b/src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue index be5c4da..a9c792f 100644 --- a/src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue +++ b/src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue @@ -2,15 +2,11 @@
-<<<<<<< HEAD @@ -30,7 +26,6 @@
本章资源
-<<<<<<< HEAD - ->>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05 删除 @@ -63,15 +52,11 @@
-<<<<<<< HEAD
-======= -
->>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
{{ ind + 1 }}
@@ -85,7 +70,6 @@
-<<<<<<< HEAD - ->>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05 删除
@@ -308,11 +286,7 @@ const MyBtn = { gap: 38px; flex-wrap: wrap; -<<<<<<< HEAD & > * { -======= - &>* { ->>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05 border: 1px solid #0052d9; font-weight: bold; font-size: 12px; @@ -363,7 +337,6 @@ const MyBtn = { cursor: pointer; &:hover { -<<<<<<< HEAD background: linear-gradient( 128deg, lighten($color-start, 5%) 0%, @@ -385,23 +358,6 @@ const MyBtn = { lighten($color-start, 20%) 0%, lighten($color-end, 20%) 100% ); -======= - background: linear-gradient(128deg, - lighten($color-start, 5%) 0%, - lighten($color-end, 5%) 100%); - } - - &:active { - background: linear-gradient(128deg, - darken($color-start, 10%) 0%, - darken($color-end, 10%) 100%); - } - - &:disabled { - background: linear-gradient(128deg, - lighten($color-start, 20%) 0%, - lighten($color-end, 20%) 100%); ->>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05 } } diff --git a/src/views/course/components/course-object.vue b/src/views/course/components/course-object.vue index 28375a8..530ccd0 100644 --- a/src/views/course/components/course-object.vue +++ b/src/views/course/components/course-object.vue @@ -181,7 +181,13 @@ const submit = async () => {
@@ -211,35 +217,61 @@ const submit = async () => {
-
  • - 目标{{ i + 1 }}:{{ obj.content }} -
    - - +
  • + 目标{{ i + 1 }}:{{ obj.content }} +
    + + +
    +
  • +
    +
    + - + + + + + + + + +
    - - - - - - - - - - - -
    - diff --git a/src/views/home/components/Lessonlist.vue b/src/views/home/components/Lessonlist.vue index 01c3efb..83058e8 100644 --- a/src/views/home/components/Lessonlist.vue +++ b/src/views/home/components/Lessonlist.vue @@ -16,7 +16,7 @@ const getLesList = async () => { const res = await userLessonListService(userStore.data.id) lessonList.value = res.data loading.value = false - // console.log(res.data, 'less') + console.log(res.data, 'less') } const onGetCourseObject = async (id) => { router.push({ @@ -102,6 +102,7 @@ onMounted(() => { border: 1px solid #e8e8f2; margin: 10px 0px; } + .lessonlist-item-info { box-sizing: border-box; padding: 6px 5px; diff --git a/src/views/home/components/Status.vue b/src/views/home/components/Status.vue index 0b4f5ba..1a1b541 100644 --- a/src/views/home/components/Status.vue +++ b/src/views/home/components/Status.vue @@ -1,12 +1,11 @@