From 3cce63f3c8165d0ef21323315c402fde9551a5ec Mon Sep 17 00:00:00 2001 From: DongZeLiang <2746733890@qq.com> Date: Fri, 8 Mar 2024 14:23:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=A7=84=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/info/index.vue | 33 ++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/src/views/product/info/index.vue b/src/views/product/info/index.vue index b1da988..f179ca4 100644 --- a/src/views/product/info/index.vue +++ b/src/views/product/info/index.vue @@ -305,7 +305,7 @@
- + + + +
@@ -404,7 +410,26 @@ export default { templateAttributeGroupList: [], templateAttributeList: [], attributeList: [] - } + }, + titleList: [ + { + "label":"商品库存", + "prop":"stock" + }, { + "label":"商品价格", + "prop":"price" + }, { + "label":"规格图片", + "prop":"image" + } + ], + skuList: [ + { + "image": "123", + "price": 85.62, + "stock": 236 + } + ] }; }, watch: { @@ -441,6 +466,10 @@ export default { this.getList(); }, methods: { + changeRule(ruleId){ + let ruleInfo = this.ruleList.find(ruleInfo => ruleInfo.id === ruleId); + console.log(ruleInfo); + }, saveCustomAttribute(){ addAttribute({"code": this.customAttributeForm.code, "name": this.customAttributeForm.name}).then(response => { if (response.code === 200){