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 @@ + + + + + + {{ scope.row.id }} + + + + + {{ scope.row.name }} + + + + + + + + + {{attribute.name}} + + + + + + + + + {{ scope.row.remark }} + + + + + + {{ scope.row.createTime }} + + + + + {{ scope.row.createBy }} + + + + + 编辑 + 删除 + + + + 新增 + + + + + + + + + + + {{attribute.name}} + + + + + 可选属性 + + + + + + + + + + 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 @@ + + + + + + + {{ scope.row.createTime }} + + + + + + + {{ scope.row.createBy }} + + + + + + + {{ scope.row.id }} + + + + + + + {{ scope.row.name }} + + + + + + + {{ scope.row.remark }} + + + + + + 修改 + 删除 + + + + 新增 + + + + + + + + + + + + + + + + + +