diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue index 0685426..8b15141 100644 --- a/pages/center/consumer/index.vue +++ b/pages/center/consumer/index.vue @@ -304,7 +304,7 @@ /> - + - + > --> { + this.phaseList.forEach(i => { if(i.isShow) this.screen.clientStage.push(i.value) }) // 客户来源 @@ -1099,7 +1072,7 @@ export default { }) }); }, - // 获取客户阶段数据 + // 获取客户阶段数据 getCustomPhase() { this.phaseList = []; this.$u @@ -1107,14 +1080,17 @@ export default { houseId: this.buildingID, }) .then((res) => { - let tempArr = []; - res.forEach((item) => { - let tempObj = {}; - tempObj.label = item.stageName; - tempObj.value = item.id; - tempArr.push(tempObj); - }); - this.phaseList = tempArr; + if(res.length){ + this.phaseList = res.map(item=>{ + return { + label: item.stageName, + value: item.id, + isShow: false + } + }) + }else{ + this.phaseList =[] + } }); }, //选择顾问 @@ -1148,7 +1124,7 @@ export default { this.wajueList.map((i) => { i.isShow = false; }); - this.stageList.map((i) => { + this.phaseList.map((i) => { i.isShow = false; }); this.jiedaiList.map((i) => {