mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
导出
This commit is contained in:
@@ -666,7 +666,7 @@ export default {
|
|||||||
process.env.VUE_APP_PROXY_URL
|
process.env.VUE_APP_PROXY_URL
|
||||||
}admin/student/exportTaskStudent?currentStageId=${
|
}admin/student/exportTaskStudent?currentStageId=${
|
||||||
props.projectTaskInfo.stageId
|
props.projectTaskInfo.stageId
|
||||||
}&type=${1}&pid=${props.projectTaskInfo.projectId}taskType=0`
|
}&type=${1}&pid=${props.projectTaskInfo.projectId}taskType=2`
|
||||||
);
|
);
|
||||||
// api
|
// api
|
||||||
// .exportTaskStudent({
|
// .exportTaskStudent({
|
||||||
|
|||||||
@@ -557,7 +557,7 @@ export default {
|
|||||||
process.env.VUE_APP_PROXY_URL
|
process.env.VUE_APP_PROXY_URL
|
||||||
}admin/student/exportTaskStudent?currentStageId=${
|
}admin/student/exportTaskStudent?currentStageId=${
|
||||||
props.projectTaskInfo.stageId
|
props.projectTaskInfo.stageId
|
||||||
}&type=${1}&pid=${props.projectTaskInfo.projectId}&taskType=0`
|
}&type=${1}&pid=${props.projectTaskInfo.projectId}&taskType=4`
|
||||||
);
|
);
|
||||||
// api
|
// api
|
||||||
// .exportTaskStudent({
|
// .exportTaskStudent({
|
||||||
|
|||||||
@@ -660,7 +660,7 @@ export default {
|
|||||||
process.env.VUE_APP_PROXY_URL
|
process.env.VUE_APP_PROXY_URL
|
||||||
}admin/student/exportTaskStudent?currentStageId=${
|
}admin/student/exportTaskStudent?currentStageId=${
|
||||||
props.datasource.chapterId
|
props.datasource.chapterId
|
||||||
}&type=${2}&pid=${props.datasource.routerId}&taskType=0`
|
}&type=${2}&pid=${props.datasource.routerId}&taskType=2&thirdType=2`
|
||||||
);
|
);
|
||||||
// api
|
// api
|
||||||
// .exportTaskStudent({
|
// .exportTaskStudent({
|
||||||
|
|||||||
@@ -611,7 +611,7 @@ export default {
|
|||||||
process.env.VUE_APP_PROXY_URL
|
process.env.VUE_APP_PROXY_URL
|
||||||
}admin/student/exportTaskStudent?currentStageId=${
|
}admin/student/exportTaskStudent?currentStageId=${
|
||||||
props.datasource.chapterId
|
props.datasource.chapterId
|
||||||
}&type=${2}&pid=${props.datasource.routerId}&taskType=0`
|
}&type=${2}&pid=${props.datasource.routerId}&taskType=2`
|
||||||
);
|
);
|
||||||
// api
|
// api
|
||||||
// .exportTaskStudent({
|
// .exportTaskStudent({
|
||||||
|
|||||||
@@ -565,7 +565,7 @@ export default {
|
|||||||
process.env.VUE_APP_PROXY_URL
|
process.env.VUE_APP_PROXY_URL
|
||||||
}admin/student/exportTaskStudent?currentStageId=${
|
}admin/student/exportTaskStudent?currentStageId=${
|
||||||
props.datasource.chapterId
|
props.datasource.chapterId
|
||||||
}&type=${2}&pid=${props.datasource.routerId}&taskType=0`
|
}&type=${2}&pid=${props.datasource.routerId}&taskType=4`
|
||||||
);
|
);
|
||||||
// api
|
// api
|
||||||
// .exportTaskStudent({
|
// .exportTaskStudent({
|
||||||
|
|||||||
@@ -102,7 +102,7 @@
|
|||||||
<a-button class="cus-btn white"> 批量换组 </a-button>
|
<a-button class="cus-btn white"> 批量换组 </a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="1.5" v-if="type === 1">
|
<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>
|
||||||
<a-col :span="1.5">
|
<a-col :span="1.5">
|
||||||
<a-button class="cus-btn white" @click="bathDel">
|
<a-button class="cus-btn white" @click="bathDel">
|
||||||
@@ -476,6 +476,16 @@ const stuRowSelection = computed(() => ({
|
|||||||
onChange: onStuSelectChange,
|
onChange: onStuSelectChange,
|
||||||
preserveSelectedRowKeys: true,
|
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(() => {
|
onMounted(() => {
|
||||||
getStuList();
|
getStuList();
|
||||||
|
|||||||
Reference in New Issue
Block a user