fix:修改考试数据导出

This commit is contained in:
wyx
2023-01-05 10:09:48 +08:00
parent 6c4efacdcf
commit bfe493a47b
2 changed files with 6 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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),