From 81d01bd819df9e51d229c6013a9ffb53247a2c4e Mon Sep 17 00:00:00 2001 From: LegnaYet <1023868505@qq.com> Date: Mon, 27 Apr 2020 23:36:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/CustomerDetail.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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){