mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 23:06:45 +08:00
提交为了发布
This commit is contained in:
@@ -594,19 +594,23 @@ export default {
|
||||
}
|
||||
if($this.coursewareInfo.content.contentType == 40) {
|
||||
//console.log(con.content,'con.content');
|
||||
if(con.content != '' && con.content.indexOf('.pdf') > -1) {
|
||||
$this.coursewareInfo.content.content = con.content;
|
||||
}else {
|
||||
// if(con.content != '' && con.content.indexOf('.pdf') > -1) {
|
||||
// $this.coursewareInfo.content.content = con.content;
|
||||
// }else {
|
||||
apiCourseFile.detail(con.contentRefId).then(cfrs => {
|
||||
if (cfrs.status == 200) {
|
||||
$this.curCFile=cfrs.result;
|
||||
$this.converStatus = cfrs.result.converStatus;
|
||||
$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;
|
||||
}
|
||||
} else {
|
||||
$this.$message.error('加载pdf课件文件失败');
|
||||
}
|
||||
});
|
||||
}
|
||||
// }
|
||||
}
|
||||
} else if (con.sortIndex == 2) {
|
||||
$this.homeworkInfo = con;
|
||||
|
||||
@@ -649,20 +649,19 @@ export default {
|
||||
this.curriculumData.url = r.content
|
||||
}
|
||||
} else if(r.contentType == 40) {
|
||||
this.contentData.content="";
|
||||
|
||||
this.contentData.content="";
|
||||
apiCourseFile.detail(r.contentRefId).then(cfrs => {
|
||||
if (cfrs.status == 200) {
|
||||
this.curCFile=cfrs.result;
|
||||
this.converStatus = cfrs.result.converStatus;
|
||||
this.contentData.content = cfrs.result.previewFilePath;
|
||||
//下面是为了兼容老数据
|
||||
if(!cfrs.result.previewFilePath && cfrs.result.filePath.index('.pdf')>-1){
|
||||
this.contentData.content=cfrs.result.filePath;
|
||||
if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) {
|
||||
this.contentData.content = cfrs.result.filePath;
|
||||
} else {
|
||||
this.converStatus = cfrs.result.converStatus;
|
||||
}
|
||||
//console.log(r.content);
|
||||
}else {
|
||||
this.contentData.content="";
|
||||
this.$message.error('加载pdf课件文件失败');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -134,8 +134,9 @@ export default {
|
||||
<style lang="scss" scoped>
|
||||
.one-line-ellipsis{
|
||||
display: -webkit-box;
|
||||
|
||||
white-space:pre-wrap;
|
||||
// word-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
word-break:break-all;
|
||||
overflow: hidden;
|
||||
text-overflow:ellipsis;
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
|
||||
<div style="padding-right: 30px;"><div></div></div>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-checkbox style="margin-right:10px" v-model="checked"></el-checkbox><span style="font-size:14px;color:#787878;">我已阅读并遵守<span style="color:#588afc;margin-right:10px;cursor: pointer;" @click="courseInfoFormCheckedShow = true">平台内容发布要求</span></span>
|
||||
<el-checkbox style="margin-right:10px" v-if="curCourseId != ''" v-model="checked"></el-checkbox><span v-if="curCourseId != ''" style="font-size:14px;color:#787878;">我已阅读并遵守<span style="color:#588afc;margin-right:10px;cursor: pointer;" @click="courseInfoFormCheckedShow = true">平台内容发布要求</span></span>
|
||||
<!-- <el-button v-if="curCourseId!='' && contentInfo.list.length>0">预览</el-button> -->
|
||||
<el-button :loading="btnLoading" v-if="curCourseId != ''" :disabled="!checked" @click="submitCourse()" type="primary">提交审核</el-button>
|
||||
<el-button @click="closeForm()">关闭</el-button>
|
||||
|
||||
@@ -593,6 +593,7 @@
|
||||
setupTage:0,
|
||||
},
|
||||
},
|
||||
pdfTip:'',//pdf文件的提示
|
||||
hasCWare:{ keyword:'', count: 0, pageSize: 10, pageIndex: 1, list:[]},
|
||||
homework:{
|
||||
show:1,
|
||||
@@ -737,12 +738,17 @@
|
||||
}else{
|
||||
apiCourseFile.detail(this.cware.content.contentRefId).then(rs=>{
|
||||
if(rs.status==200){
|
||||
this.curCFile=rs.result;
|
||||
this.converStatus = rs.result.converStatus;
|
||||
this.courseFileShow = false;
|
||||
this.cware.content.pdfPath=rs.result.previewFilePath;
|
||||
this.cware.content.content=rs.result.previewFilePath;
|
||||
if(rs.result.previewFilePath == '' && rs.result.filePath.indexOf('pdf') > -1) {
|
||||
this.$forceUpdate();
|
||||
this.cware.content.pdfPath = rs.result.filePath;
|
||||
} else {
|
||||
this.curCFile=rs.result;
|
||||
this.converStatus = rs.result.converStatus;
|
||||
}
|
||||
this.$forceUpdate();
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -822,6 +828,9 @@
|
||||
this.cware.content.duration=row.duration;//时长
|
||||
this.cware.findShow=false;
|
||||
if(this.cware.content.contentType==40){
|
||||
if(row.filePath.indexOf('.pdf')==-1){
|
||||
this.cware.content.content=row.previewFilePath;
|
||||
}
|
||||
this.loadPdfFile();
|
||||
}
|
||||
this.saveContent(1);
|
||||
|
||||
Reference in New Issue
Block a user