From 120737c3cd08b3cae804d5c40e5926af30c02dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B5=A9=E7=8E=AE?= Date: Tue, 13 Jul 2021 16:55:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ranger.js | 12 + src/components/table/table.vue | 2 + src/pages/ranger/basic/item/add_edit.vue | 261 ++++++++++++++++++++++ src/pages/ranger/basic/item/index.vue | 113 ++++++++++ src/pages/ranger/basic/place/add_edit.vue | 2 +- src/router/config.js | 5 + 6 files changed, 394 insertions(+), 1 deletion(-) create mode 100644 src/pages/ranger/basic/item/add_edit.vue create mode 100644 src/pages/ranger/basic/item/index.vue diff --git a/src/api/ranger.js b/src/api/ranger.js index ad0c6f6..4f9c506 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 44f1340..1928df3 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" >