wlzboy
6 天以前 7de1396e315896dbc72a9d54e44f77434ea90f18
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'
  })
}