mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 23:36:44 +08:00
提交我的修改
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user