|
@@ -31,6 +31,10 @@ export default {
|
|
|
placeholderInfo: {
|
|
|
type: String,
|
|
|
default: '请输入上级名称搜索'
|
|
|
+ },
|
|
|
+ isShowSn: {
|
|
|
+ type: String,
|
|
|
+ default: null
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -61,7 +65,16 @@ export default {
|
|
|
if (fetchId !== this.lastFetchId) {
|
|
|
return
|
|
|
}
|
|
|
- this.data = res.data && res.data.list ? res.data.list : []
|
|
|
+ if (res.data && res.data.list && res.data.list.length > 0) {
|
|
|
+ if (!this.isShowSn) {
|
|
|
+ this.data = res.data.list
|
|
|
+ } else {
|
|
|
+ const newData = res.data.list.filter(con => con.dealerSn != this.isShowSn)
|
|
|
+ this.data = newData
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.data = []
|
|
|
+ }
|
|
|
this.fetching = false
|
|
|
})
|
|
|
},
|