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 @@ + + +