|
@@ -59,9 +59,9 @@ export default {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
- isDealerFlag: { // 是否为下级
|
|
|
- type: Boolean,
|
|
|
- default: false
|
|
|
+ dealerFlag: { // 0不含下级,1 只是下级,all是全部
|
|
|
+ type: String,
|
|
|
+ default: 'all'
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -80,7 +80,7 @@ export default {
|
|
|
const fetchId = this.lastFetchId
|
|
|
this.data = []
|
|
|
this.fetching = true
|
|
|
- const params = { pageNo: 1, pageSize: 20, mainFlag: this.mainFlag ? 1 : 0, dealerFlag: this.isDealerFlag ? 1 : 0 }
|
|
|
+ const params = { pageNo: 1, pageSize: 20, mainFlag: this.mainFlag ? 1 : 0, dealerFlag: this.dealerFlag == 'all' ? undefined : this.dealerFlag }
|
|
|
if (this.satelliteFlag) {
|
|
|
params.satelliteFlag = 1
|
|
|
}
|