diff --git a/src/components/Course/catalogCourseware.vue b/src/components/Course/catalogCourseware.vue index c115226c..cd2ba745 100644 --- a/src/components/Course/catalogCourseware.vue +++ b/src/components/Course/catalogCourseware.vue @@ -102,10 +102,10 @@
- +
- +
diff --git a/src/components/Course/chooseCourseFile.vue b/src/components/Course/chooseCourseFile.vue index d14bb2ec..d5252794 100644 --- a/src/components/Course/chooseCourseFile.vue +++ b/src/components/Course/chooseCourseFile.vue @@ -44,11 +44,18 @@
+
+ 内容时长(分): + + + +
将文件拖到此处,或点击上传
文件大小限制:{{curComType.maxSizeName}},支持的文件类型:{{curComType.fileTypes.join(',')}}
+
{{courseFile.fileName}} 上传成功
@@ -68,6 +75,14 @@ type: String, default:'500' }, + orgId:{ + type: String, + default:'' + }, + orgName:{ + type: String, + default:'' + }, resType:{ type: Number, default:0 @@ -86,6 +101,7 @@ pageIndex:1, count:0, keyword: '', + duration:1, comTypes:[ {id:'1',type:'video',name:'视频',img:'el-icon-video-camera',resType:10,maxSize:1024,maxSizeName:"1G",fileTypes:['mp4']}, {id:'2',type:'sound',name:'音频',img:'el-icon-service',resType:20,maxSize:1024,maxSizeName:"1G",fileTypes:['mp3']}, @@ -156,6 +172,9 @@ fileType:res.result.fileType, filePath:res.result.filePath, resType:this.resType, + orgId:this.orgId, + orgName:this.orgName, + duration:this.duration, remark:'课程中直接上传' } apiCourseFile.saveUpload(courseWare).then(rs=>{ diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 2aad98c5..f5f3f242 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -567,6 +567,7 @@ export default { this.orgName=orgInfo.name; this.orgKid=orgInfo.kid; //kid已不存在 this.courseInfo.orgId=orgInfo.id; + this.courseInfo.orgName=orgInfo.name; this.$refs.refChooseOrg.dlgShow = false; }, getTeacherList(res) { @@ -729,6 +730,7 @@ export default { apiUserBasic.getOrgInfo(this.courseInfo.orgId).then(rs=>{ if(rs.status==200){ this.orgName=rs.result.name; + this.courseInfo.orgName=rs.result.name; //this.orgKid=rs.result.kid; this.orgNamePath=rs.result.namePath; } @@ -849,6 +851,7 @@ export default { apiUserBasic.getOrgInfo(ors.result.id).then(rrs=>{ if(rrs.status==200){ $this.orgName=rrs.result.name; + this.courseInfo.orgName=rrs.result.name; //$this.orgKid=rrs.result.kid; $this.orgNamePath=rrs.result.namePath; }else{ @@ -875,6 +878,7 @@ export default { apiUserBasic.getOrgInfo(this.courseInfo.orgId).then(rs=>{ if(rs.status==200){ $this.orgName=rs.result.name; + $this.courseInfo.orgName=rs.result.name; //$this.orgKid=rs.result.kid; $this.orgNamePath=rs.result.namePath; }else{ diff --git a/src/views/course/Courseware.vue b/src/views/course/Courseware.vue index 52df84a4..3c2f2865 100644 --- a/src/views/course/Courseware.vue +++ b/src/views/course/Courseware.vue @@ -231,6 +231,7 @@ --> + {{ form.orgName }} {{ form.fileName }} {{ getType(form.resType) }} @@ -255,7 +256,7 @@