From b0d59aeb7d4cbd3fc1d9355473e2f72f942f70c7 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Mon, 1 Apr 2024 15:40:42 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E4=BA=BA=E5=91=98=E7=9B=B8?=
=?UTF-8?q?=E5=85=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layouts/header/index.vue | 2 +-
src/pages/match/manage/matchInfo.vue | 6 +++---
src/pages/match/manage/matchSignup.vue | 27 +++++++++++++++-----------
3 files changed, 20 insertions(+), 15 deletions(-)
diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue
index f1c2967..9a73df9 100644
--- a/src/layouts/header/index.vue
+++ b/src/layouts/header/index.vue
@@ -20,7 +20,7 @@
class="p-v-5 cursor-pointer"
@click="toComment(item)">{{ item.commentUsername }} 回复了你的评论
消息
指导老师: |
-
+
@@ -91,7 +90,7 @@
clearable
size="mini"
:disabled="!item.edit">
-
+
@@ -493,6 +492,7 @@ export default {
teamId: this.info.teamId,
phone: row.phone,
position: row.position,
+ accountId: this.accountId
}).then(res => {
util.successMsg((row.id ? '修改' : '新增') + '成功')
this.getInfo()
diff --git a/src/pages/match/manage/matchSignup.vue b/src/pages/match/manage/matchSignup.vue
index 8c2bae7..81a671e 100644
--- a/src/pages/match/manage/matchSignup.vue
+++ b/src/pages/match/manage/matchSignup.vue
@@ -85,17 +85,17 @@
align="center">
@@ -286,7 +286,7 @@
模板下载
- {
- util.downloadFileDirect(`报名人员.xls`, new Blob([res.data]))
+ const name = res.headers['content-disposition']
+ util.downloadFileDirect(name ? decodeURI(name) : '报名人员.xlsx', new Blob([res.data]))
}).catch(res => { })
} else {
axios.get(`${this.api.excelExport}?competitionId=${this.id}`, {
@@ -781,7 +785,8 @@ export default {
},
responseType: 'blob'
}).then((res) => {
- util.downloadFileDirect(`报名人员.xls`, new Blob([res.data]))
+ const name = res.headers['content-disposition']
+ util.downloadFileDirect(name ? decodeURI(name) : '报名人员.xlsx', new Blob([res.data]))
}).catch(res => { })
}
},
|