From e077b1f2119e5861c116a299c2eef93cd6857adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Thu, 27 Nov 2025 13:47:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=A1=A3=E6=A1=88?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E9=83=A8=E5=88=86=E5=9F=BA=E7=A1=80=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=8F=AF=E4=BB=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/student.ts | 21 +++++ src/views/student/index.vue | 105 ++++++++++----------- src/views/toschoolinfomanage/editModal.vue | 96 +++++++++++++++---- 3 files changed, 147 insertions(+), 75 deletions(-) diff --git a/src/api/student.ts b/src/api/student.ts index 51084d8..f1705b8 100644 --- a/src/api/student.ts +++ b/src/api/student.ts @@ -82,3 +82,24 @@ export function PosititonIds(data:any[]) { data }); } +/** + * @description 导入表单 + * @return {object} + */ +export function ImportUpdateStudent(file: File) { + let formData = new FormData(); + formData.append("file", file); + return http.request( + "post", + `Student/ImportUpdateStudent`, + { + data: formData + }, + { + headers: { + "Content-Type": "application/x-www-form-urlencoded" + }, + responseType: "blob" + } + ); +} \ No newline at end of file diff --git a/src/views/student/index.vue b/src/views/student/index.vue index 69c08f0..8bd6b01 100644 --- a/src/views/student/index.vue +++ b/src/views/student/index.vue @@ -42,12 +42,7 @@ - + 导出用户 --> + 使用Excel模板更新用户
@@ -99,26 +97,17 @@