提交为了发布

This commit is contained in:
daihh
2022-06-02 17:45:56 +08:00
44 changed files with 2247 additions and 1666 deletions

View File

@@ -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;

View File

@@ -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课件文件失败');
}
});

View File

@@ -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;

View File

@@ -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>

View File

@@ -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);

View File

@@ -162,7 +162,7 @@ export default {
let obj = {
one: urlPre+'/web/teacherLesson',
two: urlPre+'/grow180/login',
three: this.webBaseUrl + '/study/index',
three: this.webBaseUrl + '/study/index?study=1',
four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130',
five: urlPre+'/boe/new-employee/index.html'
};

View File

@@ -44,7 +44,7 @@
</el-col>
<el-col :span="2">
<div class="grid-content bg-purple">
<el-button type="primary" style="margin-left: 20px;" @click="getSignupList()" >搜索</el-button>
<el-button type="primary" style="margin-left: 20px;" @click="getSignupList()" >ssz</el-button>
</div>
</el-col>
<!-- <el-col :span="2"> -->
@@ -623,14 +623,16 @@ export default {
pageIndex: this.study.pageIndex,
pageSize: this.study.pageSize
};
apicourseStudy.findSignup(params).then(res => {
if (res.status === 200) {
let ids = [];
res.result.list.forEach(item => {
ids.push(item.aid);
});
this.getQaUserData(res.result.list, ids);
// this.study.list = res.result.list;
this.study.list = res.result.list;
this.study.count = res.result.count;
} else {
this.$message.error(res.message);

View File

@@ -73,10 +73,11 @@
<span slot="title" class="textl">考试管理</span>
</el-menu-item>
</el-submenu>
<!-- <el-menu-item index="/manage/teachers" v-show="curIdentity == 3">
<!--增加一个说明-->
<el-menu-item index="/manage/teachers" v-show="curIdentity == 3">
<svg-icon icon-class="teather"></svg-icon>
<span slot="title">教师管理</span>
</el-menu-item> -->
</el-menu-item>
<!-- <el-menu-item index="/case/manage" v-show="curIdentity == 3">
<svg-icon icon-class="case"></svg-icon>
<span slot="title">案例管理</span>
@@ -426,7 +427,7 @@ export default {
height: 36px;
}
.oneheight{
height: 36px;
line-height: 36px;
}