|
|
@@ -93,6 +93,7 @@ export const okrApi = {
|
|
|
getSubordinates: periodId => api.get(`/okr/period/${periodId}/subordinates`).then(r => r.data),
|
|
|
getPendingReviews: periodId => api.get(`/okr/period/${periodId}/pending-reviews`).then(r => r.data),
|
|
|
getAllOkrs: periodId => api.get(`/okr/period/${periodId}/all`).then(r => r.data),
|
|
|
+ getWorkbench: periodId => api.get('/okr/workbench', { params: { periodId } }).then(r => r.data),
|
|
|
getDetail: id => api.get(`/okr/${id}`).then(r => r.data),
|
|
|
getTree: periodId => api.get(`/okr/period/${periodId}/tree`).then(r => r.data),
|
|
|
getOrphans: periodId => api.get(`/okr/period/${periodId}/orphans`).then(r => r.data),
|
|
|
@@ -121,7 +122,9 @@ export const scoreApi = {
|
|
|
confirm: data => api.post('/scores/confirm', data),
|
|
|
getPage: (periodId, userId) => api.get('/scores/page', { params: { periodId, userId } }).then(r => r.data),
|
|
|
getMyResult: periodId => api.get('/scores/my', { params: { periodId } }).then(r => r.data),
|
|
|
- getSubordinates: periodId => api.get('/scores/subordinates', { params: { periodId } }).then(r => r.data)
|
|
|
+ getSubordinates: periodId => api.get('/scores/subordinates', { params: { periodId } }).then(r => r.data),
|
|
|
+ getReviewQueue: periodId => api.get('/scores/review-queue', { params: { periodId } }).then(r => r.data),
|
|
|
+ getHistory: () => api.get('/scores/history').then(r => r.data)
|
|
|
}
|
|
|
|
|
|
export const scoreAppealApi = {
|