From 761682671e483c092dd02155051f3e352324a06d Mon Sep 17 00:00:00 2001 From: DongZeLiang <2746733890@qq.com> Date: Fri, 8 Mar 2024 14:35:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=A7=84=E6=A0=BC=E8=A1=A8?= =?UTF-8?q?=E5=A4=B4=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/info/index.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/product/info/index.vue b/src/views/product/info/index.vue index f179ca4..78333ea 100644 --- a/src/views/product/info/index.vue +++ b/src/views/product/info/index.vue @@ -468,6 +468,14 @@ export default { methods: { changeRule(ruleId){ let ruleInfo = this.ruleList.find(ruleInfo => ruleInfo.id === ruleId); + const {ruleAttrList} = ruleInfo; + for (let ruleAttrListKey in ruleAttrList) { + let ruleAttrInfo = ruleAttrList[ruleAttrListKey]; + this.titleList.push({ + "label":ruleAttrInfo.name, + "prop":"stock" + }) + } console.log(ruleInfo); }, saveCustomAttribute(){