| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 查询部门列表 |
| | | // 查询学院列表 |
| | | export function listDept(query) { |
| | | return request({ |
| | | url: '/system/dept/list', |
| | |
| | | }) |
| | | } |
| | | |
| | | // 查询部门列表(排除节点) |
| | | // 查询学院列表(排除节点) |
| | | export function listDeptExcludeChild(deptId) { |
| | | return request({ |
| | | url: '/system/dept/list/exclude/' + deptId, |
| | |
| | | }) |
| | | } |
| | | |
| | | // 查询部门详细 |
| | | // 查询学院详细 |
| | | export function getDept(deptId) { |
| | | return request({ |
| | | url: '/system/dept/' + deptId, |
| | |
| | | }) |
| | | } |
| | | |
| | | // 新增部门 |
| | | // 新增学院 |
| | | export function addDept(data) { |
| | | return request({ |
| | | url: '/system/dept', |
| | |
| | | }) |
| | | } |
| | | |
| | | // 修改部门 |
| | | // 修改学院 |
| | | export function updateDept(data) { |
| | | return request({ |
| | | url: '/system/dept', |
| | |
| | | }) |
| | | } |
| | | |
| | | // 删除部门 |
| | | // 删除学院 |
| | | export function delDept(deptId) { |
| | | return request({ |
| | | url: '/system/dept/' + deptId, |