diff --git a/src/components/drawers/project/ProjectExamManage.vue b/src/components/drawers/project/ProjectExamManage.vue index fe3daa11..173685a1 100644 --- a/src/components/drawers/project/ProjectExamManage.vue +++ b/src/components/drawers/project/ProjectExamManage.vue @@ -356,7 +356,8 @@ export default { {/* 导出数据 */} function exportData() { - api.ExportExam({ + window.open(`${process.env.VUE_APP_PROXY_URL}admin/exam/manage/exportExam?chapterId=${props.datasource.chapterId}&targetId=${props.datasource.routerId}&taskId=${props.datasource.courseId}&type=${1}`) + {/* api.ExportExam({ "chapterId": props.datasource.chapterId, "targetId": props.datasource.routerId, "taskId": props.datasource.courseId, @@ -365,7 +366,7 @@ export default { console.log(res) }).catch(err=>{ console.log(err) - }) + }) */} } return { diff --git a/src/components/drawers/router/RouterExaminationManage.vue b/src/components/drawers/router/RouterExaminationManage.vue index ab81a563..13a3a7fd 100644 --- a/src/components/drawers/router/RouterExaminationManage.vue +++ b/src/components/drawers/router/RouterExaminationManage.vue @@ -376,7 +376,8 @@ {/* 导出数据 */} function exportData() { - api.ExportExam({ + window.open(`${process.env.VUE_APP_PROXY_URL}admin/exam/manage/exportExam?chapterId=${props.datasource.chapterId}&targetId=${props.datasource.routerId}&taskId=${props.datasource.courseId}&type=${1}`) + {/* api.ExportExam({ "chapterId": props.datasource.chapterId, "targetId": props.datasource.routerId, "taskId": props.datasource.courseId, @@ -385,7 +386,7 @@ console.log(res) }).catch(err=>{ console.log(err) - }) + }) */} } return { ...toRefs(state),