mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 01:46:42 +08:00
回退
This commit is contained in:
@@ -97,8 +97,8 @@ const studyInfo = function(courseId) {
|
||||
* @param {Object} studyId
|
||||
* @param {Object} contentId
|
||||
*/
|
||||
const getStudyContentItem = function(studyId,contentId,contentTotal) {
|
||||
return ajax.post('/xboe/school/study/course/study-course-content',{studyId,contentId,contentTotal});
|
||||
const getStudyContentItem = function(studyId,contentId) {
|
||||
return ajax.post('/xboe/school/study/course/study-course-content',{studyId,contentId});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -152,10 +152,6 @@ export default {
|
||||
showTest:{
|
||||
type:Boolean,
|
||||
default:false
|
||||
},
|
||||
contentTotal:{
|
||||
type:Number,
|
||||
default:0
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -253,7 +249,7 @@ export default {
|
||||
},
|
||||
loadStudyItemId(){
|
||||
//获取studyItemId;
|
||||
apiStudy.getStudyContentItem(this.studyId,this.info.contentId,this.contentTotal).then(rs=>{
|
||||
apiStudy.getStudyContentItem(this.studyId,this.info.contentId).then(rs=>{
|
||||
if(rs.status==200){
|
||||
this.examScore=rs.result.score;
|
||||
this.studyItemId=rs.result.id;
|
||||
@@ -538,7 +534,6 @@ export default {
|
||||
paperJson:JSON.stringify(this.paper),//原来是对象,这里要也要对象
|
||||
//startTime:formatDate(this.startTime),//此时间需要格式化,格式化时间可以放在util中
|
||||
//endTime:formatDate(now),
|
||||
contentTotal:this.contentTotal,
|
||||
}
|
||||
//计划考试的时长
|
||||
var dateDiff = now.getTime() - this.startTime.getTime();//时间差的毫秒数
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
<homework @submit="homeWorkSubmit" v-if="resType == 60 && studyId != ''" :studyId="studyId" :content="contentData"></homework>
|
||||
</div>
|
||||
<div v-if="resType == 61">
|
||||
<exam :contentTotal="totalContent" @startTest="startTest" v-if="resType == 61 && studyId != '' " :studyId="studyId" :content="contentData"></exam>
|
||||
<exam @startTest="startTest" v-if="resType == 61 && studyId != '' " :studyId="studyId" :content="contentData"></exam>
|
||||
</div>
|
||||
<div v-if="resType == 62" style="padding:5px">
|
||||
<assess v-if="resType == 62 && studyId != '' && contentData.id" :studyId="studyId" :content="contentData">
|
||||
|
||||
Reference in New Issue
Block a user