diff --git a/src/api/product/category.js b/src/api/product/category.js index a8ab19f..fade048 100644 --- a/src/api/product/category.js +++ b/src/api/product/category.js @@ -16,6 +16,21 @@ export function getCategory(id) { method: 'get' }) } +// 查询品类共有元素 +export function getTemplateAttribute(id) { + return request({ + url: '/product/category/getTemplateAttribute/' + id, + method: 'get' + }) +} + +// 查询品类信息详细 +export function parentCommonElement(id) { + return request({ + url: '/product/category/parentCommonElement/' + id, + method: 'get' + }) +} // 新增品类信息 export function addCategory(data) { diff --git a/src/views/product/attribute/index.vue b/src/views/product/attribute/index.vue index 0e1ed83..d1b259f 100644 --- a/src/views/product/attribute/index.vue +++ b/src/views/product/attribute/index.vue @@ -62,7 +62,7 @@ - + @@ -117,18 +117,11 @@ + diff --git a/src/views/product/rule/index.vue b/src/views/product/rule/index.vue index 190ea33..6d23546 100644 --- a/src/views/product/rule/index.vue +++ b/src/views/product/rule/index.vue @@ -65,6 +65,18 @@ + + + + + + + @@ -104,6 +116,45 @@ + + + + {{ruleAttr.name}} + + + + + {{ruleProperty}} + + 添加 + + + + + 添加规格 + + + + + + + + + 添加 + +