fix:导入成功后刷新列表

This commit is contained in:
wyx
2023-03-23 19:42:08 +08:00
parent f304a64636
commit 9d1c778e77

View File

@@ -103,7 +103,7 @@
添加学员 添加学员
</a-button> </a-button>
</CommonStudent> </CommonStudent>
<CommonImport title="导入学员" :template-url="stuTemplateUrl" :data="{ targetId: offcoursePlanId, type:3 }" :url="`/admin/student/importStudent`" name="uploadFile"> <CommonImport @change="change" title="导入学员" :template-url="stuTemplateUrl" :data="{ targetId: offcoursePlanId, type:3 }" :url="`/admin/student/importStudent`" name="uploadFile">
<div class="btn btn1" style="margin-right: 20px;margin-left: 20px"> <div class="btn btn1" style="margin-right: 20px;margin-left: 20px">
<div class="img1"></div> <div class="img1"></div>
<div class="wz">导入学员</div> <div class="wz">导入学员</div>
@@ -377,6 +377,14 @@ const qrcodeVisible = () => {
}); });
}; };
const change = (e) => {
console.log(e)
if(e==="end"){
// 请求刷新数据
tableRef.value.fetch();
}
}
</script> </script>
<style lang="scss"> <style lang="scss">