mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 07:16:44 +08:00
提交
This commit is contained in:
@@ -73,13 +73,12 @@
|
||||
<div class="content"><img src="@/assets/images/icon/remark-iocn.png" alt="" srcset="">详细介绍:<div class="content-text" v-html="courseInfo.summary"></div></div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="大纲" name="second">
|
||||
<el-tab-pane label="大纲" name="second" v-if="courseInfo.type==20">
|
||||
<div class="category" v-for="(item) in catalogTree" :key="item.id">
|
||||
<div class="node">
|
||||
<div class="title">{{item.section.name}}</div>
|
||||
<div class="subnode" v-for="(it,itIdx) in item.contents" :key="it.id">
|
||||
<div class="sub-title">
|
||||
<!-- {{itIdx+1}}. -->
|
||||
<div class="tip"><span class="tip-type">{{getType(it.contentType)}}</span>{{it.contentName}}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -87,6 +86,14 @@
|
||||
</div>
|
||||
<div style="height: 30px;"></div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="大纲" name="second" v-if="courseInfo.type==10">
|
||||
<div class="category" v-for="(item) in contentList" :key="item.id">
|
||||
<div class="node">
|
||||
<div class="title">{{item.contentName}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height: 30px;"></div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane :label="'评论('+commentsTtoal+')'" name="third">
|
||||
<comments v-if="courseInfo.id!=''" :readonly="!stuStusts || stuStusts==0" :showTop="false" @writeTotal="showCommentsTotal" @success="addCommentSuccess" @delSuccess="delCommentSuccess" :obj-type="1" :to-users="toUsers" :obj-id="courseInfo.id" :obj-title="courseInfo.name"></comments>
|
||||
</el-tab-pane>
|
||||
@@ -185,31 +192,38 @@ export default {
|
||||
ctoUsers.push({aid:item.teacherId,name:item.teacherName,sex:item.sex});
|
||||
})
|
||||
this.toUsers=ctoUsers;
|
||||
this.loadAuthorInfo(rs.result.teachers,userIds)
|
||||
this.loadAuthorInfo(rs.result.teachers,userIds);
|
||||
}
|
||||
this.courseInfo=rs.result.course;
|
||||
this.courseInfo.score = rs.result.course.score;
|
||||
if(rs.result.course.tags!=''){
|
||||
this.tagArray=rs.result.course.tags.split(',');
|
||||
}
|
||||
if(!rs.result.course.resOwner3){
|
||||
this.courseInfo.resOwner = this.resOwnerName(rs.result.course.resOwner2);
|
||||
} else{
|
||||
this.courseInfo.resOwner = this.resOwnerName(rs.result.course.resOwner3);
|
||||
}
|
||||
this.teachers=rs.result.teachers;
|
||||
this.contentList=rs.result.contents;
|
||||
let treeList=[];
|
||||
rs.result.sections.forEach(sec=>{
|
||||
let treeNode={section:sec,contents:[]}
|
||||
rs.result.contents.forEach(c=>{
|
||||
if(c.csectionId==sec.id){
|
||||
treeNode.contents.push(c);
|
||||
}
|
||||
});
|
||||
treeList.push(treeNode);
|
||||
})
|
||||
this.catalogTree=treeList;
|
||||
this.courseInfo=rs.result.course;
|
||||
this.courseInfo.score = rs.result.course.score;
|
||||
if(rs.result.course.tags!=''){
|
||||
this.tagArray=rs.result.course.tags.split(',');
|
||||
}
|
||||
if(!rs.result.course.resOwner3){
|
||||
this.courseInfo.resOwner = this.resOwnerName(rs.result.course.resOwner2);
|
||||
} else{
|
||||
this.courseInfo.resOwner = this.resOwnerName(rs.result.course.resOwner3);
|
||||
}
|
||||
this.teachers=rs.result.teachers;
|
||||
if(this.courseInfo.type == 10) {
|
||||
this.contentList=rs.result.contents;
|
||||
} else {
|
||||
let treeList=[];
|
||||
rs.result.sections.forEach(sec=>{
|
||||
let treeNode={section:sec,contents:[]}
|
||||
rs.result.contents.forEach(c=>{
|
||||
if(c.csectionId==sec.id){
|
||||
treeNode.contents.push(c);
|
||||
}
|
||||
});
|
||||
treeList.push(treeNode);
|
||||
})
|
||||
this.catalogTree=treeList;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
this.showQrimage();
|
||||
this.isSignUp();
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user