This commit is contained in:
zhangyc
2023-01-10 13:28:24 +08:00
parent 124b8ca044
commit e787525e13
6 changed files with 16 additions and 6 deletions

View File

@@ -102,7 +102,7 @@
<a-button class="cus-btn white"> 批量换组 </a-button>
</a-col>
<a-col :span="1.5" v-if="type === 1">
<a-button class="cus-btn white"> 导出学习信息 </a-button>
<a-button class="cus-btn white" @click="exportTaskStu"> 导出学习信息 </a-button>
</a-col>
<a-col :span="1.5">
<a-button class="cus-btn white" @click="bathDel">
@@ -476,6 +476,16 @@ const stuRowSelection = computed(() => ({
onChange: onStuSelectChange,
preserveSelectedRowKeys: true,
}));
// 导出数据
function exportTaskStu() {
console.log("props.datasource", props.datasource);
window.open(
`${
process.env.VUE_APP_PROXY_URL
}admin/student/exportTaskStudent?type=${1}&pid=${props.id}&taskType=0`
);
}
onMounted(() => {
getStuList();