From d0108ad2efb5d033b3146992e916352ce7abb586 Mon Sep 17 00:00:00 2001 From: 20300 <643145201@qq.com> Date: Tue, 5 Mar 2024 21:02:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E6=AE=B5=E5=B1=9E=E6=80=A7=E7=BB=84?= =?UTF-8?q?=E7=9A=84=E6=B7=BB=E5=8A=A0,=E5=88=97=E8=A1=A8,=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/attribute.js | 40 +++ .../product/attribute/attributeGroup.vue | 257 ++++++++++++++++++ src/views/product/attribute/index.vue | 192 +++++++++++++ 3 files changed, 489 insertions(+) create mode 100644 src/api/product/attribute.js create mode 100644 src/views/product/attribute/attributeGroup.vue create mode 100644 src/views/product/attribute/index.vue diff --git a/src/api/product/attribute.js b/src/api/product/attribute.js new file mode 100644 index 0000000..0763596 --- /dev/null +++ b/src/api/product/attribute.js @@ -0,0 +1,40 @@ +import request from '@/utils/request' +// 查询属性列表 +export function list(name) { + return request({ + url: '/product/attributeInfo/list?name='+name, + method: 'get' + }) +} + +//新增属性 +export function insertAttribute(attribute) { + return request({ + url: '/product/attributeInfo/insertAttribute', + method: 'post', + data: attribute + }) +} + +//删除属性 +export function deleteById(attributeInfoId) { + return request({ + url: '/product/attributeInfo/deleteAttributeById?attributeInfoId='+attributeInfoId, + method: 'get' + }) +} +//获取属性组列表 +export function getAttributeGroupList(attributeName) { + return request({ + url: '/product/attributeGroup/getAttributeGroupList?attributeName='+attributeName, + method: 'get' + }) +} + +export function insertAttributeGroup(attributeGroupReq) { + return request({ + url: '/product/attributeGroup/insertAttributeGroup', + method: 'post', + data: attributeGroupReq + }) +} diff --git a/src/views/product/attribute/attributeGroup.vue b/src/views/product/attribute/attributeGroup.vue new file mode 100644 index 0000000..56ba8fd --- /dev/null +++ b/src/views/product/attribute/attributeGroup.vue @@ -0,0 +1,257 @@ + + + + diff --git a/src/views/product/attribute/index.vue b/src/views/product/attribute/index.vue new file mode 100644 index 0000000..41d675e --- /dev/null +++ b/src/views/product/attribute/index.vue @@ -0,0 +1,192 @@ + + + +