|
@@ -40,6 +40,16 @@ export default {
|
|
|
format.students.push(...data)
|
|
|
return post('/student/student-manage', format)
|
|
|
},
|
|
|
+ // 匯入
|
|
|
+ ImportStudent: function(schoolId, data) {
|
|
|
+ let format = {
|
|
|
+ grant_type: 'import',
|
|
|
+ schoolId: schoolId,
|
|
|
+ students: []
|
|
|
+ }
|
|
|
+ format.students.push(...data)
|
|
|
+ return post('/student/student-manage', format)
|
|
|
+ },
|
|
|
updateStudent: function(data) {
|
|
|
return post('/api/Student/upsert', data)
|
|
|
},
|