修复 导入转班/退班失败的情况
This commit is contained in:
parent
ed9fc0634d
commit
62159a50ce
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue