修复 导入转班/退班失败的情况

This commit is contained in:
小肥羊 2025-12-09 18:26:44 +08:00
parent ed9fc0634d
commit 62159a50ce
1 changed files with 8 additions and 5 deletions

View File

@ -10,13 +10,14 @@ import { Ref } from "vue";
* @description * @description
* @return {void} * @return {void}
*/ */
export function ImportTransferStudent(data) { export function ImportTransferStudent(file) {
let formData = new FormData();
formData.append("file", file);
return http.request<Res<any>>( return http.request<Res<any>>(
"post", "post",
`userCenter/back/users/importtransferstudent`, `userCenter/back/users/importtransferstudent`,
{ {
data data: formData
}, },
{ {
headers: { headers: {
@ -30,12 +31,14 @@ export function ImportTransferStudent(data) {
* @description 退 * @description 退
* @return {void} * @return {void}
*/ */
export function ImportStudentOut(data: any) { export function ImportStudentOut(file: any) {
let formData = new FormData();
formData.append("file", file);
return http.request<Res<any>>( return http.request<Res<any>>(
"post", "post",
`userCenter/back/users/importstudentout`, `userCenter/back/users/importstudentout`,
{ {
data data: formData
}, },
{ {
headers: { headers: {