diff --git a/src/api/product/attrInfo.js b/src/api/product/attrInfo.js new file mode 100644 index 0000000..b961658 --- /dev/null +++ b/src/api/product/attrInfo.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询品牌信息列表 +export function listAttrInfo(query) { + return request({ + url: '/product/attrInfo/list', + method: 'get', + params: query + }) +} + +// 查询品牌信息详细 +export function getAttrInfo(id) { + return request({ + url: '/product/attrInfo/' + id, + method: 'get' + }) +} + +// 新增品牌信息 +export function addAttrInfo(data) { + return request({ + url: '/product/attrInfo', + method: 'post', + data: data + }) +} + +// 修改品牌信息 +export function updateAttrInfo(data) { + return request({ + url: '/product/attrInfo/'+data.id, + method: 'put', + data: data + }) +} + +// 删除品牌信息 +export function delAttrInfo(id) { + return request({ + url: '/product/attrInfo/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/info.js b/src/api/product/info.js index 80b02c2..00f7037 100644 --- a/src/api/product/info.js +++ b/src/api/product/info.js @@ -29,7 +29,7 @@ export function addInfo(data) { // 修改商品信息 export function updateInfo(data) { return request({ - url: '/product/info/'+data.id, + url: '/product/info', method: 'put', data: data }) diff --git a/src/views/product/attributeGroup/1 b/src/views/product/attrInfo/index.vue similarity index 57% rename from src/views/product/attributeGroup/1 rename to src/views/product/attrInfo/index.vue index b262f9f..e617c2f 100644 --- a/src/views/product/attributeGroup/1 +++ b/src/views/product/attrInfo/index.vue @@ -1,23 +1,38 @@ diff --git a/src/views/product/rule/index.vue b/src/views/product/rule/index.vue index 416fb64..29772ca 100644 --- a/src/views/product/rule/index.vue +++ b/src/views/product/rule/index.vue @@ -1,5 +1,6 @@ diff --git a/src/views/product/type/index.vue b/src/views/product/type/index.vue index cfb11bd..fc176ff 100644 --- a/src/views/product/type/index.vue +++ b/src/views/product/type/index.vue @@ -159,7 +159,6 @@