mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
课程名称修改为名称路径
This commit is contained in:
@@ -240,6 +240,7 @@ import weikeContent from "@/components/Course/weikeContent.vue";
|
||||
import catalogCourseware from "@/components/Course/catalogCourseware.vue";
|
||||
import apiCourse from "@/api/modules/course.js";
|
||||
import apiOrg from '../../api/system/organiza.js';
|
||||
import apiUser from '../../api/system/user.js';
|
||||
import scene from "../../api/modules/scene.js";
|
||||
import exam from "@/components/Course/exam";
|
||||
import homework from "@/components/Course/homework";
|
||||
@@ -599,6 +600,21 @@ export default {
|
||||
this.orgKid=rrs.result.kid;
|
||||
}
|
||||
})
|
||||
}else{
|
||||
//根据课程创建者获取机构id
|
||||
apiUser.getOrgSimpleByUserId(this.courseInfo.sysCreateAid).then(ors=>{
|
||||
if(ors.status==200){
|
||||
$this.courseInfo.orgId=ors.result.id;
|
||||
apiOrg.getSimple(ors.result.id).then(rrs=>{
|
||||
if(rrs.status==200){
|
||||
$this.orgName=rrs.result.name;
|
||||
$this.orgKid=rrs.result.kid;
|
||||
}
|
||||
})
|
||||
}else{
|
||||
//
|
||||
}
|
||||
})
|
||||
}
|
||||
this.teacherList = rs.result.teachers;
|
||||
this.teacherName = rs.result.teachers;
|
||||
|
||||
@@ -267,6 +267,7 @@
|
||||
<script>
|
||||
import apiCoursePortal from "@/api/modules/coursePortal.js";
|
||||
import apiOrg from '../../api/system/organiza.js';
|
||||
import apiUser from '@/api/system/user.js';
|
||||
import exam from "@/components/Course/exam";
|
||||
import homework from "@/components/Course/homework";
|
||||
import pdfPreview from "@/components/PdfPreview/index.vue";
|
||||
@@ -639,6 +640,21 @@ export default {
|
||||
this.orgKid=rrs.result.kid;
|
||||
}
|
||||
})
|
||||
}else{
|
||||
//根据课程创建者获取机构id
|
||||
apiUser.getOrgSimpleByUserId(this.courseInfo.sysCreateAid).then(ors=>{
|
||||
if(ors.status==200){
|
||||
$this.courseInfo.orgId=ors.result.id;
|
||||
apiOrg.getSimple(ors.result.id).then(rrs=>{
|
||||
if(rrs.status==200){
|
||||
$this.orgName=rrs.result.name;
|
||||
$this.orgKid=rrs.result.kid;
|
||||
}
|
||||
})
|
||||
}else{
|
||||
//
|
||||
}
|
||||
})
|
||||
}
|
||||
if(rs.result.course.coverImg !== '') {
|
||||
this.courseCoverurl = this.fileBaseUrl + rs.result.course.coverImg;
|
||||
|
||||
@@ -218,7 +218,7 @@ export default {
|
||||
auditUser:hrbpUser.real_name,
|
||||
ukid:hrbpUser.user_id,
|
||||
orgId:row.orgId,
|
||||
orgName:rrs.result.name
|
||||
orgName:rs.result.orgnization_name_path+'/'+rrs.result.name
|
||||
}
|
||||
apiCourse.sumbits(req).then(res=>{
|
||||
if(res.status==200){
|
||||
|
||||
Reference in New Issue
Block a user