diff --git a/src/views/report/Curriculum.vue b/src/views/report/Curriculum.vue index 45075dca..77468581 100644 --- a/src/views/report/Curriculum.vue +++ b/src/views/report/Curriculum.vue @@ -543,7 +543,12 @@ export default { }, }).then( (res) => { - downLoad(res.data, "课程详细信息.xlsx"); + if(res.data.status && res.data.status == 600){ + message.error(res.data.message); + }else{ + downLoad(res.data, "课程详细信息.xlsx"); + } + }, (err) => { message.error(err); diff --git a/src/views/report/Learningpathmap.vue b/src/views/report/Learningpathmap.vue index acdfa366..a4dca7cf 100644 --- a/src/views/report/Learningpathmap.vue +++ b/src/views/report/Learningpathmap.vue @@ -468,7 +468,12 @@ export default { token: Cookies.get("token"), }, }).then((res) => { - downLoad(res.data, "学习路径图详细信息.xlsx"); + if(res.data.status && res.data.status == 600){ + message.error(res.data.status) + }else{ + downLoad(res.data, "学习路径图详细信息.xlsx"); + } + }), (err) => { message.error(err); diff --git a/src/views/report/ReportProject.vue b/src/views/report/ReportProject.vue index e35bdbb7..99728ac3 100644 --- a/src/views/report/ReportProject.vue +++ b/src/views/report/ReportProject.vue @@ -293,7 +293,12 @@ export default { }, }).then( (res) => { - downLoad(res.data, "项目详情.xlsx"); + if(res.data.status && res.data.status == 600){ + message.error(res.data.message); + }else{ + downLoad(res.data, "项目详情.xlsx"); + } + }, (err) => { message.error(err);