mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
修改提示问题
This commit is contained in:
@@ -175,11 +175,11 @@
|
||||
</audio> -->
|
||||
</div>
|
||||
<div v-if="contentData.contentType == 40">
|
||||
<div style="padding: 10px;color: #767676; " v-if="converStatus < 2">
|
||||
<div style="padding: 10px;color: #767676; " v-if="converStatus < 2 && !contentData.content">
|
||||
<div>文档文件转化中,还未转化完成,</div>
|
||||
<div>上传时间:{{curCFile.sysCreateTime}}</div>
|
||||
</div>
|
||||
<div style="padding: 10px;color: #767676;color: #ff0000;" v-if="converStatus == 3">
|
||||
<div style="padding: 10px;color: #767676;color: #ff0000;" v-if="converStatus == 3 && !contentData.content">
|
||||
文件转化失败,请重新上传(不要上传加密的文件)或联系管理员
|
||||
</div>
|
||||
<pdfPreview v-if="contentData.content" :filePath="fileBaseUrl+contentData.content"></pdfPreview>
|
||||
@@ -656,11 +656,15 @@ export default {
|
||||
apiCourseFile.detail(r.contentRefId).then(cfrs => {
|
||||
if (cfrs.status == 200) {
|
||||
this.contentData.content = cfrs.result.previewFilePath;
|
||||
this.converStatus = cfrs.result.converStatus;
|
||||
this.curCFile=cfrs.result;
|
||||
if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) {
|
||||
this.contentData.content = cfrs.result.filePath;
|
||||
} else {
|
||||
this.converStatus = cfrs.result.converStatus;
|
||||
this.curCFile=cfrs.result;
|
||||
}
|
||||
if(this.contentData.content && this.contentData.content.indexOf('pdf') > -1){
|
||||
if(this.converStatus || this.converStatus<2){
|
||||
this.converStatus=2;
|
||||
}
|
||||
}
|
||||
//console.log(r.content);
|
||||
}else {
|
||||
|
||||
Reference in New Issue
Block a user