品类添加

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: [] default: []
} }
}, },
watch: {
value: {
handler(val){
if (val.toString() !== this.attributeIdList.toString()){
this.attributeIdList = val;
this.checkedAttributeList = []
}
},
immediate :true,
}
},
data(){ data(){
return{ return{
attributeIdList: [], attributeIdList: [],

View File

@ -94,6 +94,8 @@ export default {
default: [] default: []
} }
}, },
data(){ data(){
return{ return{
attributeGroupIdList: [], 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() { created() {
this.queryAttributeGroup(); this.queryAttributeGroup();
}, },