Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/portal

This commit is contained in:
dongruihua
2022-09-08 17:20:05 +08:00
4 changed files with 34 additions and 18 deletions

View File

@@ -666,6 +666,19 @@ export default {
this.courseInfo.orgId=this.userInfo.departId; this.courseInfo.orgId=this.userInfo.departId;
if(!this.courseInfo.orgId){
this.courseInfo.orgId=this.userInfo.departId;
}
this.orgKid='';
if(this.courseInfo.orgId){
apiOrg.getSimple(this.courseInfo.orgId).then(rrs=>{
if(rrs.status==200){
this.orgName=rrs.result.name;
this.orgKid=rrs.result.kid;
}
})
}
} else { } else {
//console.log(editData,'editData'); //console.log(editData,'editData');
this.weikeReset = editData.id; this.weikeReset = editData.id;
@@ -683,18 +696,7 @@ export default {
this.biaoke.dlgShow = true; this.biaoke.dlgShow = true;
} }
} }
if(!this.courseInfo.orgId){
this.courseInfo.orgId=this.userInfo.departId;
}
this.orgKid='';
if(this.courseInfo.orgId){
apiOrg.getSimple(this.courseInfo.orgId).then(rrs=>{
if(rrs.status==200){
this.orgName=rrs.result.name;
this.orgKid=rrs.result.kid;
}
})
}
}, },
resetCurCourseContent() { resetCurCourseContent() {
this.curContent = { id: '', contentType: 0, contentName: '', content: '', csectionId: '', contentName: '', contentRefId: '', courseId: this.courseInfo.id }; this.curContent = { id: '', contentType: 0, contentName: '', content: '', csectionId: '', contentName: '', contentRefId: '', courseId: this.courseInfo.id };
@@ -775,6 +777,20 @@ export default {
this.contentInfo.list = result.contents; this.contentInfo.list = result.contents;
this.sectionInfo.list = result.sections; this.sectionInfo.list = result.sections;
this.courseTeachers = result.teachers; //课程的老师信息 this.courseTeachers = result.teachers; //课程的老师信息
if(!this.courseInfo.orgId){
this.courseInfo.orgId=this.userInfo.departId;
}
//$this.orgKid='';
if($this.courseInfo.orgId){
apiOrg.getSimple($this.courseInfo.orgId).then(rrs=>{
if(rrs.status==200){
$this.orgName=rrs.result.name;
$this.orgKid=rrs.result.kid;
}
})
}
this.resOwnerArray=[]; this.resOwnerArray=[];
if (result.course.resOwner1 == '') { if (result.course.resOwner1 == '') {
this.resOwnerArray.push(result.course.resOwner1); this.resOwnerArray.push(result.course.resOwner1);
@@ -1065,8 +1081,10 @@ export default {
}); });
}, },
submitCourse() { submitCourse() {
console.log(this.courseInfo.orgId,'this.courseInfo.orgId');
console.log(this.orgKid,'this.orgKid');
if(!this.courseInfo.orgId || !this.orgKid){ if(!this.courseInfo.orgId || !this.orgKid){
this.$message.success('请选择资源归属'); this.$message.error('请选择资源归属');
return; return;
} }
//console.log(this.resOwnerListMap[0],'this.resOwnerListMap[0]'); //console.log(this.resOwnerListMap[0],'this.resOwnerListMap[0]');

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="u-page"> <div class="u-page">
<div style="padding: 2px 0px 20px 0px;"> <div style="padding: 2px 0px 10px 0px;">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
<el-cascader placeholder="内容分类" clearable v-model="sysTypeList" :props="defaultTypeProps" :options="sysTypeListMap"></el-cascader> <el-cascader placeholder="内容分类" clearable v-model="sysTypeList" :props="defaultTypeProps" :options="sysTypeListMap"></el-cascader>

View File

@@ -28,9 +28,7 @@
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button> <el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="10" style="margin-top:10px">
</el-row>
</div> </div>
<!-- <div style="padding-left"> <!-- <div style="padding-left">

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="u-page"> <div class="u-page">
<div style="padding: 2px 0px 20px 0px;"> <div style="padding: 2px 0px 10px 0px;">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
<el-cascader placeholder="内容分类" clearable v-model="sysTypeList" :props="defaultTypeProps" :options="sysTypeListMap"></el-cascader> <el-cascader placeholder="内容分类" clearable v-model="sysTypeList" :props="defaultTypeProps" :options="sysTypeListMap"></el-cascader>