diff --git a/src/api/ranger.js b/src/api/ranger.js index 4bcc042124c9b6d361cdfa6d203917bd896f37a8..da31e6ed918c3bed87be4c0cdb10196491a71c54 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" >