This commit is contained in:
daihh
2022-12-15 11:53:23 +08:00
5 changed files with 67 additions and 35 deletions

View File

@@ -9,6 +9,11 @@ const findByName = function(name) {
return ajax.get('/xboe/teacher/name?name=' + name);
}
const updateTeacher=function(data){
return ajax.postJson('/xboe/teacher/update-teacher',data);
}
/**
* 根据id得到教师的显示信息只是几个基本的显示字段
* @param {Object} id
@@ -21,6 +26,7 @@ const detailTeacher=function (id){
return ajax.get('/xboe/teacher/detail-teacher?id='+id);
}
/**
* 分页查询
* @param {
@@ -218,5 +224,6 @@ export default {
end,
exports,
syncUpdate,
detailTeacher
detailTeacher,
updateTeacher
}