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') }) }, },