品类添加

day9
xiaohuang 2024-03-31 10:24:14 +08:00
parent 8f05fe0a33
commit 821fb4aacc
2 changed files with 28 additions and 0 deletions

View File

@ -94,6 +94,20 @@ 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

@ -94,6 +94,8 @@ export default {
default: []
}
},
data(){
return{
attributeGroupIdList: [],
@ -109,6 +111,18 @@ export default {
}
},
watch: {
value: {
handler(val){
if (val.toString() !== this.attributeGroupIdList.toString()){
this.attributeGroupIdList = val;
this.checkedAttributeGroupList = []
}
},
immediate :true,
}
},
created() {
this.queryAttributeGroup();
},