wlzboy
2 天以前 08f95b2f159b56fa3bd4f4b348855989de8aa456
ruoyi-ui/src/api/system/dept.js
@@ -49,4 +49,20 @@
    url: '/system/dept/' + deptId,
    method: 'delete'
  })
}
}
// 按当前登录用户的 OA 权限返回分公司列表
export function listBranchByOa() {
  return request({
    url: '/system/dept/branch/by-oa',
    method: 'get'
  })
}
// 按外部传入的用户ID返回其可管理分公司列表
export function listBranchByUser(userId) {
  return request({
    url: '/system/dept/branch/by-user/' + userId,
    method: 'get'
  })
}