diff --git a/src/api/ranger.js b/src/api/ranger.js index 2ef4ddfe0e509afe25677bb7b5088ea2adcf3333..9ffcf551a78eac0af373441447692c00a6ea34ea 100644 --- a/src/api/ranger.js +++ b/src/api/ranger.js @@ -48,6 +48,18 @@ export function getUnitInfoApi(id) { return getReq(`/ranger/inspection/api/v1/units/${id}`); } +<<<<<<< src/api/ranger.js +export function getItemsInfoApi(id) { + return getReq(`/ranger/inspection/api/v1/items/${id}`); +} + +export function addItemsApi(data) { + return postReq('/ranger/inspection/api/v1/items', data); +} + +export function editItemsApi(data) { + return putReq('/ranger/inspection/api/v1/items', data); +} export function addExemptionApi(data) { return postReq('/ranger/inspection/api/v1/exemptions', data); } diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 4da35315e7940a84dedff4787fbef45a7484162b..69781ee894924616004ffd4f10649b7a263165ef 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -44,6 +44,8 @@ :title="newButtons.title" v-if="this.newButtons" v-bind="this.newButtons.options" + fixed="right" + width="180" >