商品规格表头生成

dev
DongZeLiang 2024-03-08 14:35:08 +08:00
parent 9bb988afaf
commit 761682671e
1 changed files with 8 additions and 0 deletions

View File

@ -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(){