This commit is contained in:
zhangsir
2024-07-03 15:53:30 +08:00
parent 6ec5e4ce45
commit 4478cec6f7

View File

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