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

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
* @return {void}
*/
export function ImportTransferStudent(data) {
export function ImportTransferStudent(file) {
let formData = new FormData();
formData.append("file", file);
return http.request<Res<any>>(
"post",
`userCenter/back/users/importtransferstudent`,
{
data
data: formData
},
{
headers: {
@ -30,12 +31,14 @@ export function ImportTransferStudent(data) {
* @description 退
* @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>>(
"post",
`userCenter/back/users/importstudentout`,
{
data
data: formData
},
{
headers: {