fix:导入作业加载

This commit is contained in:
wyx
2023-03-24 13:48:23 +08:00
parent 3df884b177
commit 5ad4eecf88
2 changed files with 9 additions and 1 deletions

View File

@@ -92,7 +92,7 @@
<div class="btn btn1" @click="batchFinish" style="margin-right: 20px">
<div class="wz">批量标注完成</div>
</div>
<CommonImport title="录入成绩" v-if="homeWorkId" :template-url="scoreTemplateUrl"
<CommonImport @change="change" title="录入成绩" v-if="homeWorkId" :template-url="scoreTemplateUrl"
:data="{ targetId: offcoursePlanId, type:3,workId:homeWorkId }" :url="`/admin/student/importHomeWork`"
name="uploadFile">
<div class="btn btn1" style="margin-right: 20px;margin-left: 20px">
@@ -392,6 +392,13 @@ function resetStudentPage() {
tableRef.value.reset({ pid: data.value[coursePlanIndex.value]?.id, type: 3 });
}
function change(e) {
console.log('导入作业完成了吗',e)
if(e=="end"){
resetStudentPage()
}
}
</script>
<style lang="scss">