品类添加

dev1
DongZeLiang 2024-02-29 17:02:55 +08:00
parent 3e541da52c
commit 2f7ad83a66
3 changed files with 33 additions and 0 deletions

View File

@ -72,6 +72,17 @@ export default {
default: []
}
},
watch: {
value: {
handler(val) {
if (val.toString() !== this.attributeIdList.toString()){
this.attributeIdList = val;
this.checkedAttributeList = []
}
},
immediate: true,
},
},
data() {
return {
attributeIdList: [],

View File

@ -82,6 +82,17 @@ export default {
attributeGroupList: []
}
},
watch: {
value: {
handler(val) {
if (val.toString() !== this.attributeGroupIdList.toString()){
this.attributeGroupIdList = val;
this.checkedAttributeGroupList = []
}
},
immediate: true,
},
},
created() {
this.queryAttributeGroup();
},

View File

@ -82,6 +82,17 @@ export default {
brandList: []
}
},
watch: {
value: {
handler(val) {
if (val.toString() !== this.brandIdList.toString()){
this.brandIdList = val;
this.checkedBrandList = []
}
},
immediate: true,
},
},
created() {
this.queryBrand();
},