品类添加
parent
8f05fe0a33
commit
821fb4aacc
|
@ -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: [],
|
||||||
|
|
|
@ -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();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue