mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
修改提示问题
This commit is contained in:
@@ -162,11 +162,11 @@
|
||||
</audio> -->
|
||||
</div>
|
||||
<div v-if="coursewareInfo.content.contentType == 40">
|
||||
<div style="padding: 10px;color: #767676;text-align: center;line-height: 40px; " v-if="converStatus < 2">
|
||||
<div style="padding: 10px;color: #767676;text-align: center;line-height: 40px; " v-if="converStatus < 2 && !coursewareInfo.content.content">
|
||||
<div>文档文件转化中,还未转化完成,</div>
|
||||
<div >上传时间:{{curCFile.sysCreateTime}}</div>
|
||||
</div>
|
||||
<div style="padding: 10px;color: #767676;color: #ff0000;text-align: center;" v-if="converStatus == 3">
|
||||
<div style="padding: 10px;color: #767676;color: #ff0000;text-align: center;" v-if="converStatus == 3 && !coursewareInfo.content.content">
|
||||
文件转化失败,请重新上传(不要上传加密的文件)或联系管理员
|
||||
</div>
|
||||
<pdfPreview :filePath="fileBaseUrl+coursewareInfo.content.content"></pdfPreview>
|
||||
@@ -600,11 +600,16 @@ export default {
|
||||
apiCourseFile.detail(con.contentRefId).then(cfrs => {
|
||||
if (cfrs.status == 200) {
|
||||
$this.coursewareInfo.content.content = cfrs.result.previewFilePath;
|
||||
if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) {
|
||||
$this.coursewareInfo.content.content = cfrs.result.filePath;
|
||||
} else {
|
||||
$this.curCFile=cfrs.result;
|
||||
$this.converStatus = cfrs.result.converStatus;
|
||||
$this.curCFile=cfrs.result;
|
||||
$this.converStatus = cfrs.result.converStatus;
|
||||
|
||||
if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('.pdf') > -1) {
|
||||
$this.coursewareInfo.content.content = cfrs.result.filePath;
|
||||
}
|
||||
if($this.coursewareInfo.content.content && $this.coursewareInfo.content.content.indexOf('.pdf') > -1){
|
||||
if(cfrs.result.converStatus || cfrs.result.converStatus<2){
|
||||
$this.converStatus=2;//转化完成
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$this.$message.error('加载pdf课件文件失败');
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -78,10 +78,10 @@
|
||||
<img :src="fileBaseUrl+coursewareInfo.content.content" alt="图片">
|
||||
</div>
|
||||
<div v-if="coursewareInfo.content.contentType == 40">
|
||||
<div style="padding: 10px;color: #ed0000; " v-if="curCFile.converStatus < 2">
|
||||
<div style="padding: 10px;color: #ed0000; " v-if="curCFile.converStatus < 2 && !coursewareInfo.content.content">
|
||||
<div>此课程内容无法预览,请联系管理员</div>
|
||||
</div>
|
||||
<div style="padding: 10px;color: #ed0000; " v-if="curCFile.converStatus == 3">
|
||||
<div style="padding: 10px;color: #ed0000; " v-if="curCFile.converStatus == 3 && !coursewareInfo.content.content">
|
||||
此课程内容无法预览,请联系管理员
|
||||
</div>
|
||||
<pdfPreview :autoScroll="true" v-if="coursewareInfo.content.contentType == 40" :filePath="fileBaseUrl+coursewareInfo.content.content"></pdfPreview>
|
||||
@@ -450,8 +450,10 @@ export default {
|
||||
$this.curCFile = cfrs.result;
|
||||
if(cfrs.result.previewFilePath){
|
||||
$this.coursewareInfo.content.content=cfrs.result.previewFilePath;
|
||||
$this.curCFile=2;
|
||||
}else if(cfrs.result.filePath.indexOf('.pdf')>-1){
|
||||
$this.coursewareInfo.content.content=cfrs.result.filePath;
|
||||
$this.curCFile=2;
|
||||
}
|
||||
|
||||
}else{
|
||||
|
||||
@@ -83,10 +83,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="resType == 40">
|
||||
<div style="padding: 10px;color: #ed0000; " v-if="curCFile.converStatus < 2">
|
||||
<div style="padding: 10px;color: #ed0000; " v-if="curCFile.converStatus < 2 && !contentData.content">
|
||||
<div>此课程内容无法预览,请联系管理员</div>
|
||||
</div>
|
||||
<div style="padding: 10px;color: #ed0000;" v-if="curCFile.converStatus == 3">
|
||||
<div style="padding: 10px;color: #ed0000;" v-if="curCFile.converStatus == 3 && !contentData.content">
|
||||
此课程内容无法预览,请联系管理员
|
||||
</div>
|
||||
<pdfPreview :autoScroll="true" v-if="resType == 40" :filePath="fileBaseUrl + contentData.content"></pdfPreview>
|
||||
@@ -160,7 +160,7 @@
|
||||
<el-collapse-item v-for="(item, index) in catalogTree" :key="index" :name="index">
|
||||
<!-- <template class="collapse-title" slot="title" > -->
|
||||
<div style="display:flex;margin-bottom:18px;">
|
||||
|
||||
|
||||
|
||||
<!-- 标题 -->
|
||||
<div style="flex:1;line-height:20px" class="mltit">
|
||||
@@ -168,16 +168,16 @@
|
||||
<span style="font-size:16px;font-weight: 700;color: #343434;margin-left: 15px;">
|
||||
{{ item.section.name }}</span>
|
||||
</el-tooltip>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- 状态 -->
|
||||
<div style="text-align: right;">
|
||||
<span :class="statusToContent(item.section.status).class">{{ statusToContent(item.section.status).text }}</span>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- </template> -->
|
||||
<ul>
|
||||
<li @click="showRes(ele,i,index)" v-for="(ele, i) in item.children" :key="i" class="catalog-cell" style="display: flex;justify-content: space-between;">
|
||||
@@ -821,11 +821,14 @@ export default {
|
||||
// if (r.content != '' && r.content.indexOf('.pdf') == -1) {
|
||||
apiCourseFile.detail(r.contentRefId).then(cfrs => {
|
||||
if (cfrs.status == 200) {
|
||||
r.content = cfrs.result.previewFilePath;
|
||||
r.content = cfrs.result.previewFilePath;
|
||||
this.curCFile = cfrs.result;
|
||||
if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) {
|
||||
r.content = cfrs.result.filePath;
|
||||
} else {
|
||||
this.curCFile = cfrs.result;
|
||||
r.content = cfrs.result.filePath;
|
||||
this.curCFile.converStatus=2;
|
||||
}
|
||||
if(r.content && r.content.indexOf('.pdf')>-1){
|
||||
this.curCFile.converStatus=2;
|
||||
}
|
||||
} else {
|
||||
$this.$message.error('加载pdf课件文件失败');
|
||||
@@ -1039,7 +1042,7 @@ export default {
|
||||
|
||||
<style scoped lang="scss">
|
||||
.mltit{
|
||||
|
||||
|
||||
// width: 70%;
|
||||
// width: ;
|
||||
word-break:break-all;
|
||||
|
||||
Reference in New Issue
Block a user