|
@@ -92,11 +92,11 @@ export default {
|
|
if (fetchId !== this.lastFetchId) {
|
|
if (fetchId !== this.lastFetchId) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- this.data = res.data && res.data.list ? res.data.list : []
|
|
|
|
|
|
+ const list = res.data && res.data.list ? res.data.list : []
|
|
const notSn = []
|
|
const notSn = []
|
|
- this.notDealerSn.map(item => { notSn.push(item.parentDealerSn) })
|
|
|
|
- this.data = this.data.filter(item => item.dealerLevel && !this.notDealerType.includes(item.dealerLevel))
|
|
|
|
- this.data = this.data.filter(item => !notSn.includes(item.dealerSn))
|
|
|
|
|
|
+ console.log(this.notDealerSn)
|
|
|
|
+ this.notDealerSn.filter(item => !!item).map(item => { notSn.push(item.parentDealerSn) })
|
|
|
|
+ this.data = list.filter(item => !notSn.includes(item.dealerSn)).filter(item => item.dealerLevel && !this.notDealerType.includes(item.dealerLevel))
|
|
this.fetching = false
|
|
this.fetching = false
|
|
})
|
|
})
|
|
},
|
|
},
|