商品共有元素 优化

master
DongZeLiang 2024-03-08 14:12:10 +08:00
parent 9bb3a1f8eb
commit 1673de694e
1 changed files with 16 additions and 1 deletions

View File

@ -449,7 +449,22 @@ export default {
code = this.customAttributeForm.code, code = this.customAttributeForm.code,
name = this.customAttributeForm.name, name = this.customAttributeForm.name,
value = this.customAttributeForm.value; value = this.customAttributeForm.value;
// categoryCommonElement / attributeIdCheckedList / attributeCheckedList
this.categoryCommonElement.attributeList.push({
"id": attributeId,
"name": name,
"code": code
});
this.attributeIdCheckedList.push(attributeId);
this.attributeCheckedList.push(
{
"id": attributeId,
"name": name,
"value": value
}
);
this.customAttributeForm = {}
this.customAttributeFormStatus = false;
} }
}) })
}, },