diff --git a/src/api/ranger.js b/src/api/ranger.js index ad0c6f65edcba0fe23231fdb9260b393e80f11ae..4f9c506cfe98ed964f36b860282cdce3091bea56 100644 --- a/src/api/ranger.js +++ b/src/api/ranger.js @@ -47,3 +47,15 @@ export function editUnitApi(data) { export function getUnitInfoApi(id) { return getReq(`/ranger/inspection/api/v1/units/${id}`); } + +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); +} diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 44f1340e27fb5bda429ebc688eb2693354c6f9b0..1928df36a53b945636c1851e6eb4695cac174a2b 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" >