src/api/department.js
@@ -1,7 +1,7 @@
import { post, get } from '@/utils/request'
export default {
  list: query => post('/api/admin/education/department/list'),
  list: query => post('/api/admin/department/list'),
  pageList: query => post('/api/admin/department/page/list', query),
  edit: query => post('/api/admin/department/update', query),
  select: id => post('/api/admin/department/get/' + id),
@@ -16,5 +16,6 @@
  // 获取当前用户管理的部门
  getDeptAdmins: id => get('/api/admin/department/getDeptAdmins'),
  // 修改部门管理员
  updateDeptAdmin: data => post('/api/admin/department/update-admin', data)
  updateDeptAdmin: data => post('/api/admin/department/update-admin', data),
  cascaderList: () => get('/api/admin/department/cascader')
}