diff --git a/src/api/stu.js b/src/api/stu.js index 89953f6..909bc98 100644 --- a/src/api/stu.js +++ b/src/api/stu.js @@ -1,3 +1,3 @@ -export const userStudentListService = (id) => { +export const getStuService = (id) => { return request.post('/api/coursesteacher/studentList?userId=' + id) } diff --git a/src/api/user/stud.js b/src/api/user/stud.js new file mode 100644 index 0000000..b3d38b1 --- /dev/null +++ b/src/api/user/stud.js @@ -0,0 +1,24 @@ +import request from '@/utils/request' +//分页查询 +export const stuPageService = (params) => { + // console.log(params, 'params') + return request.get( + `/api/studentManage/page?name=${params.name}&number=${params.number}&page=${params.page}&pageSize=${params.pagesize}&userId=${params.id}`, + ) +} +//获取学生 +export const stuListService = (id) => { + return request.get(`/api/studentManage/${id}`) +} +//删除和批量删除学生 +export const delStuListService = (ids) => { + return request.delete(`/api/studentManage/batchDelete?ids=${ids}`) +} +//重置学生密码 +export const reStuPassService = (ids) => { + return request.put(`/api/studentManage/initialPassword?ids=${ids}`) +} +//重置学生密码 +export const changeStaService = (status, id) => { + return request.post(`/api/studentManage/status/${status}?id=${id}`) +} diff --git a/src/api/user/user.js b/src/api/user/user.js index ca3abff..4064558 100644 --- a/src/api/user/user.js +++ b/src/api/user/user.js @@ -32,10 +32,11 @@ export const userGetInfoService = (token) => headers: { Authorization: `Bearer ${token}` }, }) //修改用户信息 -export const userChangeService = (jsonData) => { - return request.post('/api/user/update', jsonData, { - headers: { 'Content-Type': 'application/json;charset=UTF-8' }, - }) +export const userChangeService = (params) => { + // return request.post('/api/user/update', jsonData, { + // headers: { 'Content-Type': 'application/json;charset=UTF-8' }, + // }) + return request.post(`/api/user/update/PersonalInfo`, params) } //获取个人信息 export const userIdenService = (id) => { diff --git a/src/layout/tabbar/setting/index.vue b/src/layout/tabbar/setting/index.vue index a6182ff..22360a1 100644 --- a/src/layout/tabbar/setting/index.vue +++ b/src/layout/tabbar/setting/index.vue @@ -16,7 +16,7 @@ size="small" icon="Link" circle - @click="openWeb('http://www.baidu.com/', 'baidu')" + @click="openWeb('https://www.baidu.com', 'baidu')" /> import('@/views/home/index.vue'), + // name: 'Home', + // meta: { + // title: '个人中心', + // hidden: false, + // icon: 'HomeFilled', + // }, + // }, + // ], + redirect: '/curriculumCenter/basicCourseInformation', children: [ { path: '/home', @@ -127,28 +140,28 @@ export const constantRoute: any = [ }, ], }, - { - path: '/groupManagement', - component: () => import('@/layout/index.vue'), - name: 'GroupManagement', - meta: { - title: '', - hidden: false, - icon: 'HomeFilled', // 菜单图标 - }, - children: [ - { - path: '/groupManagement/group', - component: () => import('@/views/group/index.vue'), - name: 'Group', - meta: { - title: '分组', - hidden: false, - icon: 'Operation', - }, - }, - ], - }, + // { + // path: '/groupManagement', + // component: () => import('@/layout/index.vue'), + // name: 'GroupManagement', + // meta: { + // title: '', + // hidden: false, + // icon: 'HomeFilled', // 菜单图标 + // }, + // children: [ + // { + // path: '/groupManagement/group', + // component: () => import('@/views/group/index.vue'), + // name: 'Group', + // meta: { + // title: '分组', + // hidden: false, + // icon: 'Operation', + // }, + // }, + // ], + // }, { path: '/mssageManagement', component: () => import('@/layout/index.vue'), @@ -194,7 +207,8 @@ export const constantRoute: any = [ }, { path: '/myCourseStudyManagement/learningProcess1', - component: () => import('@/views/MyCourseStudy/knowledgeLearningProcess.vue'), + component: () => + import('@/views/MyCourseStudy/knowledgeLearningProcess.vue'), name: 'LearningProcess1', meta: { title: '知识点学习记录', diff --git a/src/views/course/basicCourseInformation.vue b/src/views/course/basicCourseInformation.vue index 0493ede..3b5b9d5 100644 --- a/src/views/course/basicCourseInformation.vue +++ b/src/views/course/basicCourseInformation.vue @@ -97,6 +97,7 @@ const onAddCourse = () => { flog.value = false drawer.value.open({}) } + const flog = ref(false) // 编辑时传递数据给子组件 const onEditCourse = (item: any) => { @@ -208,7 +209,11 @@ const CloseCouresNameChangeEvent = () => {
- + - + @@ -289,7 +320,6 @@ const CloseCouresNameChangeEvent = () => { } .course { - // display: flex; // flex: 0 0 25%; // justify-content: space-between; diff --git a/src/views/course/components/courseEdit.vue b/src/views/course/components/courseEdit.vue index d7fc6d3..71b25d7 100644 --- a/src/views/course/components/courseEdit.vue +++ b/src/views/course/components/courseEdit.vue @@ -243,11 +243,20 @@ const upload = async (option: any) => {