From 6f557b8af5ad5956c4c6554bfcd10983de47940d Mon Sep 17 00:00:00 2001
From: lijingyu007 <904564792@qq.com>
Date: Mon, 1 Jul 2024 10:25:08 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=8A=A5=E5=90=8D=E4=BA=BA?=
=?UTF-8?q?=E5=91=98excel?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/trainService/index.js | 2 +-
src/views/trainService/signupStudent.vue | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/api/trainService/index.js b/src/api/trainService/index.js
index 65cb98e..d552d27 100644
--- a/src/api/trainService/index.js
+++ b/src/api/trainService/index.js
@@ -199,7 +199,7 @@ export function setJson(data) {
// 导出excel
export function exportExcelF(id) {
return request({
- url: '/personal/download/resume/' + id,
+ url: '/train/importStudent/' + id,
method: 'get',
responseType: 'blob',
})
diff --git a/src/views/trainService/signupStudent.vue b/src/views/trainService/signupStudent.vue
index d32e777..a819616 100644
--- a/src/views/trainService/signupStudent.vue
+++ b/src/views/trainService/signupStudent.vue
@@ -21,9 +21,9 @@
重置
-
+ >
@@ -245,9 +245,9 @@ export default {
},
// 导出为excel
exporExcel() {
- exportExcelF().then((res) => {
+ exportExcelF(this.$route.query.id).then((res) => {
const blob = new Blob([res])
- saveAs(blob, this.$route.query.id + '报名表.xlsx')
+ saveAs(blob, this.$route.query.name + '报名表.xlsx')
})
},
},