mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-22 01:06:43 +08:00
提交修改
This commit is contained in:
@@ -77,7 +77,13 @@
|
||||
<img :src="fileBaseUrl+coursewareInfo.content.content" alt="图片">
|
||||
</div>
|
||||
<div v-if="coursewareInfo.content.contentType == 40">
|
||||
<pdfPreview :autoScroll="true" v-if="coursewareInfo.content.contentType == 40 && coursewareInfo.content.content" :filePath="fileBaseUrl+coursewareInfo.content.content"></pdfPreview>
|
||||
<div style="padding: 10px;color: #767676; " v-if="curCFile.converStatus < 2">
|
||||
<div>此课程内容无法预览,请联系管理员</div>
|
||||
</div>
|
||||
<div style="padding: 10px;color: #767676;" v-if="curCFile.converStatus == 3">
|
||||
此课程内容无法预览,请联系管理员
|
||||
</div>
|
||||
<pdfPreview :autoScroll="true" v-if="coursewareInfo.content.contentType == 40" :filePath="fileBaseUrl+coursewareInfo.content.content"></pdfPreview>
|
||||
</div>
|
||||
<div v-if="coursewareInfo.content.contentType == 41">
|
||||
<div class="couretitle" style="padding: 20px;text-align: left;" v-html="coursewareInfo.content.content"></div>
|
||||
@@ -305,6 +311,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
curCFile:{},
|
||||
sex:null,
|
||||
playerBoxShow:false,
|
||||
userAvatarText,
|
||||
@@ -440,7 +447,8 @@ export default {
|
||||
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.coursewareInfo.content.content=cfrs.result.previewFilePath;
|
||||
this.curCFile = cfrs.result;
|
||||
$this.coursewareInfo.content.content=cfrs.result.previewFilePath;
|
||||
}else{
|
||||
$this.$message.error('加载pdf课件文件失败');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user