diff --git a/src/api/product/info.js b/src/api/product/info.js index e15e6f7..c668d71 100644 --- a/src/api/product/info.js +++ b/src/api/product/info.js @@ -36,9 +36,9 @@ export function addInfo(data) { // 修改商品信息 export function updateInfo(data) { return request({ - url: '/product/info/'+data.id, + url: '/product/info/'+data.projectAddModel.id, method: 'put', - data: data + data: data.projectAddModel }) } diff --git a/src/views/product/attribute/index.vue b/src/views/product/attribute/index.vue index d1b259f..479802a 100644 --- a/src/views/product/attribute/index.vue +++ b/src/views/product/attribute/index.vue @@ -218,6 +218,11 @@ export default { const id = row.id || this.ids getAttribute(id).then(response => { this.form = response.data; + this.categoryOptionValue=[ + this.form.mianType, + this.form.parentType, + this.form.type + ]; this.open = true; this.title = "修改商品属性"; }); diff --git a/src/views/product/attributeGroup/index.vue b/src/views/product/attributeGroup/index.vue index bba261f..e33a25f 100644 --- a/src/views/product/attributeGroup/index.vue +++ b/src/views/product/attributeGroup/index.vue @@ -83,7 +83,14 @@ @@ -153,8 +160,8 @@