diff --git a/src/api/userCenter.ts b/src/api/userCenter.ts index 51772a6..1695c1d 100644 --- a/src/api/userCenter.ts +++ b/src/api/userCenter.ts @@ -2,6 +2,52 @@ 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(file) { + let formData = new FormData(); + formData.append("file", file); + return http.request>( + "post", + `userCenter/back/users/importtransferstudent`, + { + data: formData + }, + { + headers: { + "Content-Type": "application/x-www-form-urlencoded" + }, + responseType: "blob" + } + ); +} +/** + * @description 退班学生导入 + * @return {void} + */ +export function ImportStudentOut(file: any) { + let formData = new FormData(); + formData.append("file", file); + return http.request>( + "post", + `userCenter/back/users/importstudentout`, + { + data: formData + }, + { + 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 @@