diff --git a/src/api/modules/course.js b/src/api/modules/course.js index a03b5022..58b15b2d 100644 --- a/src/api/modules/course.js +++ b/src/api/modules/course.js @@ -473,6 +473,13 @@ const saveTip = function() { return ajax.postJson('/xboe/m/course/manage/saveTip'); } +/** + * 获取我开发的课程列表 + */ +const courseList = function(data) { + return ajax.postJson('/xboe/m/course/manage/page', data); +} + export default { saveBase, @@ -520,6 +527,6 @@ export default { exportCourse, queryCrowd, ids, - saveTip - + saveTip, + courseList } diff --git a/src/api/modules/coursePortal.js b/src/api/modules/coursePortal.js index 43aafa8f..6c516b7f 100644 --- a/src/api/modules/coursePortal.js +++ b/src/api/modules/coursePortal.js @@ -102,6 +102,24 @@ const courseSearch=function(query){ const detailStudy = function(courseId,aid) { return ajax.get(`/xboe/m/course/portal/detail-study?courseId=${courseId}&aid=${aid}`); } + + +/** + * 课程学习进度的详细信息-分页 + * @param {Object} data + */ +const detailStudyPage = function(data) { + return ajax.get(`/xboe/m/course/portal/detail-study-page?courseId=${data.courseId}&aid=${data.aid}&pageIndex=${data.pageIndex}&pageSize=${data.pageSize}`); +} + +/** + * 资源学习情况列列表-分页 + * @param {Object} data + */ +const pageListResource=function(data){ + return ajax.post('/xboe/school/study/course/pagelist-resource',data); +} + export default { list, pageList, @@ -112,5 +130,7 @@ export default { studyCounts, courseSearch, detailStudy, - detailPost + detailPost, + detailStudyPage, + pageListResource } diff --git a/src/api/modules/courseStudy.js b/src/api/modules/courseStudy.js index 11fca357..05314286 100644 --- a/src/api/modules/courseStudy.js +++ b/src/api/modules/courseStudy.js @@ -189,7 +189,7 @@ const studyContentRecords = function(data) { } */ const studyExport = function(data) { - return ajax.post('/xboe/school/study/course/export',data); + return ajax.post('/xboe/school/study/course/export',data, { responseType: 'blob' }); } /** @@ -402,6 +402,31 @@ const findByIds=function (ids){ return ajax.postJson('/xboe/school/study/es/list-by-ids',ids); } +const exportSignup=function (data){ + return ajax.post('/xboe/school/study/course/export-signup',data, { responseType: 'blob' }); +} + +// 作业导出 +const exportHomework=function (data){ + return ajax.post('/xboe/school/study/course/contents-homework-export',data, { responseType: 'blob' }); +} + +// 考试导出 +const exportExam=function (data){ + return ajax.post('/xboe/school/study/course/contents-exam-export',data, { responseType: 'blob' }); +} + +// 评估类型资源 +const contentsAssess=function (data){ + return ajax.post('/xboe/school/study/course/contents-assess',data); +} + +// 考试类型资源 +const contentsExam=function (data){ + return ajax.post('/xboe/school/study/course/contents-exam',data); +} + + export default { hasSignup, signup, @@ -438,5 +463,10 @@ export default { deleteSignUp, ids, followIds, - studyIndexPost + studyIndexPost, + exportSignup, + exportHomework, + exportExam, + contentsAssess, + contentsExam } diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 4dcda9ca..05018a13 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -897,7 +897,7 @@ export default { } } else { - //console.log(editData,'editData'); + console.log(editData,'editData'); this.weikeReset = editData.id; this.onlineReset = editData.id; //console.log("编辑课程?"); diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue index a98e70b5..e4628a77 100644 --- a/src/components/UserCenter/menu.vue +++ b/src/components/UserCenter/menu.vue @@ -414,6 +414,11 @@ export default { if(meta.title == '添加受众' || meta.title == '查看受众'){ meta.activeMenu = '/manage/ugroups' } + + if(route.path == '/course/coursemanage'){ + console.log('进入课程管理'); + meta.activeMenu = '/need/course' + } if (meta.activeMenu) { return meta.activeMenu; } diff --git a/src/data/pages.js b/src/data/pages.js index aec893d2..4169ec61 100644 --- a/src/data/pages.js +++ b/src/data/pages.js @@ -30,6 +30,7 @@ export const pages=[ {title:'课程建设',path:'mylist',component:'course/TeacherList',hidden:true}, {title:'课程管理',path:'manage',component:'course/ManageList',hidden:false}, {title:'课程管理新版',path:'manage-remote',component:'course/ManageListRemote',hidden:false}, + {title:'课程管理',path:'coursemanage',component:'course/CourseManage',hidden:true}, {title:'课程统计',path:'stat',component:'course/StatIndex',hidden:false}, {title:'课件管理',path:'courseware',component:'course/Courseware',hidden:false}, {title:'报名管理',path:'msignup',component:'study/ManageSignup',hidden:true}, diff --git a/src/icons/svg/del.svg b/src/icons/svg/del.svg new file mode 100644 index 00000000..816299db --- /dev/null +++ b/src/icons/svg/del.svg @@ -0,0 +1,14 @@ + + + shanchu + + + + + + + + + + + \ No newline at end of file diff --git a/src/icons/svg/detail.svg b/src/icons/svg/detail.svg new file mode 100644 index 00000000..9956f4a1 --- /dev/null +++ b/src/icons/svg/detail.svg @@ -0,0 +1,11 @@ + + + chakan + + + + + + + + \ No newline at end of file diff --git a/src/icons/svg/edit.svg b/src/icons/svg/edit.svg new file mode 100644 index 00000000..29a2053d --- /dev/null +++ b/src/icons/svg/edit.svg @@ -0,0 +1,9 @@ + + + 形状 + + + + + + \ No newline at end of file diff --git a/src/icons/svg/ercode.svg b/src/icons/svg/ercode.svg new file mode 100644 index 00000000..fc154943 --- /dev/null +++ b/src/icons/svg/ercode.svg @@ -0,0 +1,11 @@ + + + erweima + + + + + + + + \ No newline at end of file diff --git a/src/icons/svg/manage.svg b/src/icons/svg/manage.svg new file mode 100644 index 00000000..796c9bd1 --- /dev/null +++ b/src/icons/svg/manage.svg @@ -0,0 +1,11 @@ + + + guanli + + + + + + + + \ No newline at end of file diff --git a/src/views/course/CourseManage.vue b/src/views/course/CourseManage.vue new file mode 100644 index 00000000..4b0cba4e --- /dev/null +++ b/src/views/course/CourseManage.vue @@ -0,0 +1,1109 @@ + + + + + \ No newline at end of file diff --git a/src/views/course/TeacherList.vue b/src/views/course/TeacherList.vue index 82760779..58793d75 100644 --- a/src/views/course/TeacherList.vue +++ b/src/views/course/TeacherList.vue @@ -8,30 +8,38 @@ -->
- +
- - - - - + + + +
-
-
搜索
-
重置
+
+ + + + + +
+
+ + + + + + + +
+
查询
+
重置
新建课程
-
+
@@ -39,34 +47,27 @@
- - 录播 - 录播 - 【草稿】 - 【待审核】 - 【审核未通过】 - 【已审核】 - - {{ item.name }} + + {{ item.name }} +
-
-
{{ item.summary }}
-
-
+
上次修改时间:{{ item.sysUpdateTime }} - 查看审核记录
-
-
- 提交审核 - 编辑 - 去开发 - 删除 - 撤回 +
+
发布状态:{{ item.published ? '发布' : '未发布' }}
+
启停用状态:{{ item.enabled ? '启用' : '停用' }}
+
审核状态:{{getStatusLabel(item.status).label}}
+
+
+ {{it.label}} +
+

加载中...

+

没有更多了

-
+
+ +
+ + +
+ +
+ + 下载 +
+
+
+ + + + 复制 + + + 上述内容兼容PC端与移动端,您可按需分享。 +
+
+ 关 闭 +
+ + +
- - + + + + + + - +
- 取 消 + 关 闭
- +