课程审核部分的修改,替换到新开发的分支上来

This commit is contained in:
daihh
2022-09-25 10:58:16 +08:00
parent ba5ed90fc6
commit c31f9fdf62
7 changed files with 446 additions and 70 deletions

View File

@@ -333,6 +333,7 @@
import pdfPreview from "@/components/PdfPreview/index.vue";
import audioPlayer from '@/components/AudioPlayer/index.vue';
import videoPlayer from '@/components/VideoPlayer/index.vue';
import { deepClone, param } from "../../utils";
export default{
props: {
reset:{
@@ -354,6 +355,10 @@
},
course:{
type: Object,
},
addOrder:{
type:Number,
default:1
}
},
components:{chooseCourseFile,WxEditor,courseHomework,courseExam,simplePaper,fileUpload,pdfPreview,audioPlayer,videoPlayer},
@@ -389,6 +394,7 @@
setupTage:0,
},
homework:{courseId: '', name:'', content:'', file:'', deadTime: '', submitMode: 3},
homeworkChange:{},
exam:{
courseId:'',
contentId:'',
@@ -408,7 +414,9 @@
info:'',//考试说明
paperContent:'',//试题的json字符串
},
examChange:{},
onlyQuestion:true,
examPaperChange:{},
examPaper:{items:[]},
assess:{
countType:'权重配置',
@@ -515,6 +523,7 @@
apiCourse.getHomework(this.content.id).then(res=>{
if(res.status==200){
this.homework=res.result;
this.homeworkChange = deepClone(res.result);
}else if(res.status==404){
//没有找到作业信息
}else{
@@ -527,6 +536,8 @@
if(res.status==200){
this.exam=res.result;
this.examPaper=JSON.parse(res.result.paperContent);
this.examChange = deepClone(res.result);
this.examPaperChange = deepClone(JSON.parse(res.result.paperContent));
}else if(res.status==404){
//没有找到作业信息
}else{
@@ -560,7 +571,8 @@
saveData() {
//执行成功后调用外部方法
this.content.courseId=this.course.id;
this.content.sortIndex=1;//先设置为
// this.content.sortIndex=1;//先设置为
this.content.sortIndex=this.addOrder;
if(this.content.contentType==41){
//对图文的处理
this.content.content=this.htmlContent;