From 42b7918ff18cea0fa3b8e821c596ef75265f422b Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Mon, 30 Dec 2024 10:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E5=B8=82=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/supermarket/supermarketCategory.ts | 41 ++++++ .../supermarket/supermarketCategory/form.vue | 137 ++++++++++++++++++ .../supermarket/supermarketCategory/index.vue | 136 +++++++++++++++++ 3 files changed, 314 insertions(+) create mode 100644 src/api/supermarket/supermarketCategory.ts create mode 100644 src/views/supermarket/supermarketCategory/form.vue create mode 100644 src/views/supermarket/supermarketCategory/index.vue diff --git a/src/api/supermarket/supermarketCategory.ts b/src/api/supermarket/supermarketCategory.ts new file mode 100644 index 0000000..f1f3e39 --- /dev/null +++ b/src/api/supermarket/supermarketCategory.ts @@ -0,0 +1,41 @@ +import request from "/@/utils/request" + +export function fetchList(query?: Object) { + return request({ + url: '/supermarket/supermarketCategory/page', + method: 'get', + params: query + }) +} + +export function addObj(obj?: Object) { + return request({ + url: '/supermarket/supermarketCategory', + method: 'post', + data: obj + }) +} + +export function getObj(id?: string) { + return request({ + url: '/supermarket/supermarketCategory/' + id, + method: 'get' + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: '/supermarket/supermarketCategory', + method: 'delete', + data: ids + }) +} + +export function putObj(obj?: Object) { + return request({ + url: '/supermarket/supermarketCategory', + method: 'put', + data: obj + }) +} + diff --git a/src/views/supermarket/supermarketCategory/form.vue b/src/views/supermarket/supermarketCategory/form.vue new file mode 100644 index 0000000..8b9aa67 --- /dev/null +++ b/src/views/supermarket/supermarketCategory/form.vue @@ -0,0 +1,137 @@ + + + diff --git a/src/views/supermarket/supermarketCategory/index.vue b/src/views/supermarket/supermarketCategory/index.vue new file mode 100644 index 0000000..eb2508d --- /dev/null +++ b/src/views/supermarket/supermarketCategory/index.vue @@ -0,0 +1,136 @@ + + +