From bfe493a47bcd1e41ea4fb95502f7f218f971fda8 Mon Sep 17 00:00:00 2001 From: wyx Date: Thu, 5 Jan 2023 10:09:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E8=80=83=E8=AF=95?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/project/ProjectExamManage.vue | 5 +++-- src/components/drawers/router/RouterExaminationManage.vue | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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),