| | |
| | | import { post } from '@/utils/request' |
| | | import { post, get } from '@/utils/request' |
| | | |
| | | export default { |
| | | list: query => post('/api/admin/education/department/list'), |
| | |
| | | select: id => post('/api/admin/department/get/' + id), |
| | | selectUser: id => post('/api/admin/department/getUserByDepartment/' + id), |
| | | selectDepartmentUser: id => post('/api/admin/department/getDepartmentUser'), |
| | | getUserByExam: id => post('/api/admin/department/getDepartmentUser?examPaperId=' + id), |
| | | getDepartmentUserByTemplateId: id => post('/api/admin/department/getDepartmentUserByTemplateId?templateId=' + id), |
| | | deleteSubject: id => post('/api/admin/education/department/delete/' + id), |
| | | addData:query=>post('/api/admin/department/add',query) |
| | | addData: query => post('/api/admin/department/add', query), |
| | | // 获取部门用户下拉列表 |
| | | getDeptUserList: id => get('/api/admin/department/' + id + '/user-list'), |
| | | // 获取当前用户管理的部门 |
| | | getDeptAdmins: id => get('/api/admin/department/getDeptAdmins'), |
| | | // 修改部门管理员 |
| | | updateDeptAdmin: data => post('/api/admin/department/update-admin', data) |
| | | } |