diff --git a/src/components/drawers/project/ProjectOnlineManage.vue b/src/components/drawers/project/ProjectOnlineManage.vue index 8d58f717..61a9ce8a 100644 --- a/src/components/drawers/project/ProjectOnlineManage.vue +++ b/src/components/drawers/project/ProjectOnlineManage.vue @@ -306,6 +306,7 @@ export default { currentStageId: props.datasource.stageId, type: 1, pid: props.datasource.projectId, + taskId: props.datasource.projectTaskId, status: state.projectName, studentName: state.name, }); @@ -316,6 +317,7 @@ export default { currentStageId: props.datasource.stageId, type: 1, pid: props.datasource.projectId, + taskId: props.datasource.projectTaskId, status: state.projectName, studentName: state.name, }) @@ -362,20 +364,8 @@ export default { // 导出数据 function exportTaskStu() { - api - .ExportTaskStudent({ - pageNo: state.currentPage, - pageSize: state.pageSize, - currentStageId: props.datasource.stageId, - type: 1, - pid: props.datasource.projectId, - }) - .then((res) => { - console.log(res); - }) - .catch((err) => { - console.log(err); - }); + window.open(`${process.env.VUE_APP_PROXY_URL}admin/student/exportTaskStudent?currentStageId=${props.datasource.stageId}&type=${1}&pid=${props.datasource.projectId}&taskId=${props.datasource.projectTaskId}`) + // window.open(`${process.env.VUE_APP_PROXY_URL}admin/student/exportTaskStudent?pageNo=${state.currentPage}&pageSize=${state.pageSize}¤tStageId=${props.datasource.stageId}&type=${1}&pid=${props.datasource.projectId}&taskId=${props.datasource.projectTaskId}&status=${state.name}&studentName=${state.projectName}`) } return { diff --git a/src/components/drawers/router/RouterCommonManage.vue b/src/components/drawers/router/RouterCommonManage.vue index e25e1200..0f1bd82f 100644 --- a/src/components/drawers/router/RouterCommonManage.vue +++ b/src/components/drawers/router/RouterCommonManage.vue @@ -306,6 +306,7 @@ export default { currentStageId: props.datasource.chapterId, type: 2, pid: props.datasource.routerId, + taskId: props.datasource.routerTaskId, status: state.projectName, studentName: state.name, }); @@ -316,6 +317,7 @@ export default { currentStageId: props.datasource.chapterId, type: 2, pid: props.datasource.routerId, + taskId: props.datasource.routerTaskId, status: state.projectName, studentName: state.name, }) @@ -362,20 +364,9 @@ export default { // 导出数据 function exportTaskStu() { - api - .ExportTaskStudent({ - pageNo: state.currentPage, - pageSize: state.pageSize, - currentStageId: props.datasource.chapterId, - type: 2, - pid: props.datasource.routerId, - }) - .then((res) => { - console.log(res); - }) - .catch((err) => { - console.log(err); - }); + console.log(`${process.env.VUE_APP_PROXY_URL}admin/student/exportTaskStudent?currentStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId}`) + window.open(`${process.env.VUE_APP_PROXY_URL}admin/student/exportTaskStudent?currentStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId}`) + // window.open(`${process.env.VUE_APP_PROXY_URL}admin/student/exportTaskStudent?pageNo=${state.currentPage}&pageSize=${state.pageSize}¤tStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId}&status=${state.name}&studentName=${state.projectName}`) } return {