|
@@ -1,55 +1,55 @@
|
|
|
import { fetch, post } from '@/api/http'
|
|
|
export default {
|
|
|
- schoolSettingSaveOrUpdate: function(data) {
|
|
|
+ schoolSettingSaveOrUpdate: function (data) {
|
|
|
return post('/school/init/upsert', data)
|
|
|
},
|
|
|
- findSchoolSystem: function(data) {
|
|
|
+ findSchoolSystem: function (data) {
|
|
|
return post('/school/init/find', data)
|
|
|
},
|
|
|
- findClassInfo: function(data) {
|
|
|
+ findClassInfo: function (data) {
|
|
|
return post('/school/classroom/find', data)
|
|
|
},
|
|
|
- //更新或新增教室
|
|
|
- classroomSettingSaveOrUpdate: function(data) {
|
|
|
+ //更新或新增教室
|
|
|
+ classroomSettingSaveOrUpdate: function (data) {
|
|
|
return post('/school/classroom/upsert', data)
|
|
|
},
|
|
|
- dataDefault: function(data) {
|
|
|
+ dataDefault: function (data) {
|
|
|
return post('/api/Common/DataDefault', data)
|
|
|
},
|
|
|
/**
|
|
|
- * 删除教室
|
|
|
+ * 鍒犻櫎鏁欏�
|
|
|
* @param {any} data
|
|
|
*/
|
|
|
delClassroom: function (data) {
|
|
|
return post('/school/classroom/delete', data)
|
|
|
},
|
|
|
-
|
|
|
- // 取得老師个人相關數據
|
|
|
- getTeacherInfo: function(data) {
|
|
|
+
|
|
|
+ // 鍙栧緱鑰佸斧涓�汉鐩搁棞鏁告摎
|
|
|
+ getTeacherInfo: function (data) {
|
|
|
return post('/teacher/init/get-teacher-info', data)
|
|
|
},
|
|
|
-
|
|
|
- // 取得老師所在學校相關數據
|
|
|
- getTeacherSchoolInfo: function(data) {
|
|
|
- return post('/teacher/init/get-school-info', data)
|
|
|
- },
|
|
|
-
|
|
|
- // 取得數據中心當前所有學校名單
|
|
|
- getSchoolList: function(data) {
|
|
|
- return post('/teacher/init/get-school-list', data)
|
|
|
- },
|
|
|
-
|
|
|
- // 取得數據中心當前所有學校名單
|
|
|
- joinSchool: function(data) {
|
|
|
- return post('/teacher/init/join-school', data)
|
|
|
- },
|
|
|
-
|
|
|
- //获取教室关联的学生
|
|
|
+
|
|
|
+ // 取得老師所在學校相關數據
|
|
|
+ getTeacherSchoolInfo: function (data) {
|
|
|
+ return post('/teacher/init/get-school-info', data)
|
|
|
+ },
|
|
|
+
|
|
|
+ // 取得數據中心當前所有學校名單
|
|
|
+ getSchoolList: function (data) {
|
|
|
+ return post('/teacher/init/get-school-list', data)
|
|
|
+ },
|
|
|
+
|
|
|
+ // 取得數據中心當前所有學校名單
|
|
|
+ joinSchool: function (data) {
|
|
|
+ return post('/teacher/init/join-school', data)
|
|
|
+ },
|
|
|
+
|
|
|
+ //获取教室关联的学生
|
|
|
getClassroomStudent: function (data) {
|
|
|
return post('/school/classroom/find-students', data)
|
|
|
},
|
|
|
|
|
|
- //保存分组信息
|
|
|
+ //淇濆瓨鍒嗙粍淇℃伅
|
|
|
upsertGroup: function (data) {
|
|
|
return post('/school/classroom/upsert-group', data)
|
|
|
},
|