mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-08 02:16:43 +08:00
作业
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="resType == 60">
|
||||
<homework v-if="resType == 60 && studyId != ''" :studyId="studyId" :content="contentData"></homework>
|
||||
<homework @submit="homeWorkSubmit" v-if="resType == 60 && studyId != ''" :studyId="studyId" :content="contentData"></homework>
|
||||
</div>
|
||||
<div v-if="resType == 61">
|
||||
<exam @startTest="startTest" v-if="resType == 61 && studyId != '' " :studyId="studyId" :content="contentData"></exam>
|
||||
@@ -1460,6 +1460,11 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
homeWorkSubmit(){
|
||||
if(this.contentData.contentType == 60){
|
||||
this.contentData.status = 9;
|
||||
}
|
||||
},
|
||||
startTest(val){
|
||||
if(this.contentData.contentType == 61){
|
||||
this.contentData.status = 2;
|
||||
|
||||
Reference in New Issue
Block a user