From ed9fc0634da02456eb4e1c664c708a880dbaee4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Tue, 9 Dec 2025 18:06:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E5=AD=A6=E7=94=9F?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E8=BD=AC=E7=8F=AD/=E9=80=80=E7=8F=AD?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/userCenter.ts | 43 ++++++++++++++++++++++++ src/views/student/index.vue | 65 +++++++++++++++++++++++++++++-------- src/views/teacher/index.vue | 21 +++++++----- 3 files changed, 107 insertions(+), 22 deletions(-) diff --git a/src/api/userCenter.ts b/src/api/userCenter.ts index 51772a6..d3d29c3 100644 --- a/src/api/userCenter.ts +++ b/src/api/userCenter.ts @@ -2,6 +2,49 @@ import { ComboModel } from "@/components/hTable/hTable"; import { http } from "@/utils/http"; import type { Res, ResPage } from "@/utils/http/types"; import { Ref } from "vue"; + + + + +/** + * @description 转班学生导入 + * @return {void} + */ +export function ImportTransferStudent(data) { + + return http.request>( + "post", + `userCenter/back/users/importtransferstudent`, + { + data + }, + { + headers: { + "Content-Type": "application/x-www-form-urlencoded" + }, + responseType: "blob" + } + ); +} +/** + * @description 退班学生导入 + * @return {void} + */ +export function ImportStudentOut(data: any) { + return http.request>( + "post", + `userCenter/back/users/importstudentout`, + { + data + }, + { + headers: { + "Content-Type": "application/x-www-form-urlencoded" + }, + responseType: "blob" + } + ); +} /** * @description 获取枚举下拉 * @param {string} type 枚举类型 type=StatusEnum diff --git a/src/views/student/index.vue b/src/views/student/index.vue index 20f4949..cc75fba 100644 --- a/src/views/student/index.vue +++ b/src/views/student/index.vue @@ -24,7 +24,7 @@ - + - +
- 导入用户 - 下载学生模板 - - 使用Excel模板更新用户 + + 新增学生 + 更新学生 + 模板 + + + + 批量转班学生 + 模板 + + + + 批量退班 + 模板 +
@@ -81,9 +100,9 @@ @@ -151,7 +170,7 @@