提交我的修改

This commit is contained in:
daihh
2022-06-02 17:24:00 +08:00
5 changed files with 51 additions and 39 deletions

View File

@@ -1,3 +1,4 @@
<<<<<<< HEAD
<template>
<div>
<portal-header current="course" :goSearch="1"></portal-header>
@@ -444,16 +445,20 @@ export default {
} else if (con.contentType == 40) {
//需要读取pdf的路径
if($this.coursewareInfo.content.content!='' && $this.coursewareInfo.content.content.indexOf('.pdf')==-1){
apiCourseFile.detail($this.coursewareInfo.content.contentRefId).then(cfrs=>{
if(cfrs.status==200){
this.curCFile = cfrs.result;
$this.coursewareInfo.content.content=cfrs.result.previewFilePath;
}else{
$this.$message.error('加载pdf课件文件失败');
}
});
}
apiCourseFile.detail($this.coursewareInfo.content.contentRefId).then(cfrs=>{
if(cfrs.status==200){
$this.curCFile = cfrs.result;
if(cfrs.result.previewFilePath){
$this.coursewareInfo.content.content=cfrs.result.previewFilePath;
}else if(cfrs.result.filePath.indexOf('.pdf')>-1){
$this.coursewareInfo.content.content=cfrs.result.filePath;
}
}else{
$this.$message.error('加载pdf课件文件失败');
}
});
//let url = this.fileBaseUrl + r.content;
}else if(con.contentType ==52){
if(con.content.startsWith('\{')){
@@ -1671,17 +1676,5 @@ export default {
padding-left: 36px;
padding-right: 36px;
}
/* ::v-deep .el-tab-pane-boxContent{
.el-tabs__nav{
.el-tabs{
.el-tabs__header{
.el-tabs__nav{
.is-active{
font-size: 25px!important;
}
}
}
}
}
} */
</style>