From 73c57b7172cc3b64fc8de8fe0c65992e709d58a4 Mon Sep 17 00:00:00 2001 From: 34626 <3462644232@qq.com> Date: Thu, 21 Nov 2024 09:29:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96-=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=AC=A1=E5=89=8D=E7=AB=AF11.21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/info.js | 4 +-- src/views/product/attribute/index.vue | 5 ++++ src/views/product/attributeGroup/index.vue | 31 +++++++++++++++++++-- src/views/product/brand/index.vue | 6 +++- src/views/product/category/index.vue | 23 ++++++++++++++-- src/views/product/info/index.vue | 15 ++++++---- src/views/product/rule/index.vue | 32 ++++++++++++++++++++-- 7 files changed, 101 insertions(+), 15 deletions(-) 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 @@