diff --git a/src/pages/CustomerDetail.vue b/src/pages/CustomerDetail.vue index 30bee91..38a5113 100644 --- a/src/pages/CustomerDetail.vue +++ b/src/pages/CustomerDetail.vue @@ -423,21 +423,18 @@ if (!selected){ companyId = that.companyId; } - let customerIds = null; + let customerIds = []; this.customerList = []; if(companyId === 0){ // }else{ this.customerList = this.organizationalList.filter(item => item.parentId === companyId && item.level === 3); this.insertAllOption(); - customerIds = "-1"; - this.customerList.forEach(function (data) { - customerIds = customerIds + ","+data.id; - }) } + customerIds = this.customerList.map(item => item.id); let request = - {userId: that.userId,customerId: customerIds}; + {userId: that.userId,customerIds: customerIds}; staff.downShopData(request, function (data) { data = data.data.results; if(data){