安全在线教育平台
祖安之光
23 hours ago 7e827c55fa38991089d6d735f5f425b3e9cb96e1
src/api/system/dept.js
@@ -1,6 +1,6 @@
import request from '@/utils/request'
// 查询部门列表
// 查询学院列表
export function listDept(query) {
  return request({
    url: '/system/dept/list',
@@ -9,7 +9,7 @@
  })
}
// 查询部门列表(排除节点)
// 查询学院列表(排除节点)
export function listDeptExcludeChild(deptId) {
  return request({
    url: '/system/dept/list/exclude/' + deptId,
@@ -17,7 +17,7 @@
  })
}
// 查询部门详细
// 查询学院详细
export function getDept(deptId) {
  return request({
    url: '/system/dept/' + deptId,
@@ -25,7 +25,7 @@
  })
}
// 新增部门
// 新增学院
export function addDept(data) {
  return request({
    url: '/system/dept',
@@ -34,7 +34,7 @@
  })
}
// 修改部门
// 修改学院
export function updateDept(data) {
  return request({
    url: '/system/dept',
@@ -43,10 +43,10 @@
  })
}
// 删除部门
// 删除学院
export function delDept(deptId) {
  return request({
    url: '/system/dept/' + deptId,
    method: 'delete'
  })
}
}