@ -26,11 +26,13 @@ export default {
},
methods:{
handleBrandChange (id) {
if (this.value1) {
if (id) {
let brand=this.brandList.find(item=>{
return item.id==id
})
this.$emit('change', brand.name);
} else {
this.$emit('change', null);
}
@ -36,10 +36,12 @@ export default {
methods: {
handleMallCatergoryChange () {
if (this.value1 && this.value1.length != 0) {
handleMallCatergoryChange (e) {
if (e.length > 0) {
let arr = this.$refs['cascaderMallCatergory'].getCheckedNodes()[0].pathLabels
this.$emit('change', arr);
this.$emit('change', '');
recurs(list){