mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
fix:导入作业加载
This commit is contained in:
@@ -131,6 +131,7 @@ const { start } = useTimeout(async ({ uuid, file }) => {
|
|||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
fileList.value = [];
|
fileList.value = [];
|
||||||
|
emit("change", "end");
|
||||||
};
|
};
|
||||||
|
|
||||||
function openDrawer() {
|
function openDrawer() {
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
<div class="btn btn1" @click="batchFinish" style="margin-right: 20px">
|
<div class="btn btn1" @click="batchFinish" style="margin-right: 20px">
|
||||||
<div class="wz">批量标注完成</div>
|
<div class="wz">批量标注完成</div>
|
||||||
</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`"
|
:data="{ targetId: offcoursePlanId, type:3,workId:homeWorkId }" :url="`/admin/student/importHomeWork`"
|
||||||
name="uploadFile">
|
name="uploadFile">
|
||||||
<div class="btn btn1" style="margin-right: 20px;margin-left: 20px">
|
<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 });
|
tableRef.value.reset({ pid: data.value[coursePlanIndex.value]?.id, type: 3 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function change(e) {
|
||||||
|
console.log('导入作业完成了吗',e)
|
||||||
|
if(e=="end"){
|
||||||
|
resetStudentPage()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
Reference in New Issue
Block a user