From c0833c56d805788801cd60c7c78dbca97c90a3ce Mon Sep 17 00:00:00 2001 From: zhangsir Date: Fri, 2 Aug 2024 17:51:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=96=B0=E5=A2=9E=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Study/manager.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Study/manager.vue b/src/components/Study/manager.vue index 332053d0..8b810c98 100644 --- a/src/components/Study/manager.vue +++ b/src/components/Study/manager.vue @@ -292,7 +292,7 @@ 搜索 - 导出全部作业 + 导出全部作业 @@ -354,6 +354,7 @@ export default { downParams: {}, typePress: false, isHomeWork: false, + isTrue: false, catalogRecordTree:[], catalogRecordList:[], resOwnerListMap:[], @@ -510,6 +511,7 @@ export default { this.$message.warning('当前暂无数据'); return } + this.isTrue = true; let params = { courseName:this.manageStudyData.name, courseId: this.manageStudyData.id, @@ -534,6 +536,7 @@ export default { headers: { 'X-Access-Token': getToken() } }).then((response) => { if (response.status === 200) { + this.isTrue = false; if (!(response.headers['content-type']).startsWith('application/json')) { this.resolveBlob(response, 'application/zip', `${params.courseName}【作业】`); } else { @@ -547,6 +550,7 @@ export default { } } }).catch((error) => { + this.isTrue = false; // 错误处理 console.log(error); this.$message.error(error.data ? error.data.message : error.toString());