wangxiaohua 3 years ago
parent
commit
42ad00f8d7
2 changed files with 23 additions and 2 deletions
  1. +12
    -1
      pages/center/consumer/consumerSearch.vue
  2. +11
    -1
      pages/center/consumer/index.vue

+ 12
- 1
pages/center/consumer/consumerSearch.vue View File

@@ -23,7 +23,8 @@
</view> </view>
<view class="content-sec-lab"> <view class="content-sec-lab">
客户标签: 客户标签:
<!-- <view class="content-sec-tips" v-for="(che,ind) in item.demand.cusSemanticWords" :key='ind'>{{che.name}}</view> -->
<text v-if="item.demand.cusSemanticWordsList==null">暂无</text>
<view v-else class="content-sec-tips" v-for="(che,ind) in item.demand.cusSemanticWordsList" :key='ind'>{{che.name}}</view>
</view> </view>
<view class="content-sec-lab"> <view class="content-sec-lab">
顾问姓名:<view class="content-sec-lab1">{{item.agentName}}</view> 顾问姓名:<view class="content-sec-lab1">{{item.agentName}}</view>
@@ -92,6 +93,16 @@
}; };
this.$u.post("/customer/customerManagement", parames).then(data => { this.$u.post("/customer/customerManagement", parames).then(data => {
var list = data.results || []; var list = data.results || [];
list.forEach(item=>{
if(item.demand.cusSemanticWordsList!=null){
item.demand.cusSemanticWordsList.forEach(che=>{
if(che.isInterval==0){
che.name=che.name+che.unit+'-'+che.endName+che.unit;
}
})
}
})
this.recordList = [...this.recordList, ...list]; this.recordList = [...this.recordList, ...list];
this.totalRecord=data.totalPage; this.totalRecord=data.totalPage;
}) })


+ 11
- 1
pages/center/consumer/index.vue View File

@@ -46,7 +46,7 @@
</view> </view>
<view class="content-sec-lab" style="line-height: 46rpx;"> <view class="content-sec-lab" style="line-height: 46rpx;">
客户标签: 客户标签:
<text v-if="item.demand.cusSemanticWordsList.length==0">暂无</text>
<text v-if="item.demand.cusSemanticWordsList==null">暂无</text>
<view v-else class="content-sec-tips" v-for="(che,ind) in item.demand.cusSemanticWordsList" :key='ind'>{{che.name}}</view> <view v-else class="content-sec-tips" v-for="(che,ind) in item.demand.cusSemanticWordsList" :key='ind'>{{che.name}}</view>
</view> </view>
@@ -259,6 +259,16 @@
item.isshow=false; item.isshow=false;
} }
}) })
list.forEach(item=>{
if(item.demand.cusSemanticWordsList!=null){
item.demand.cusSemanticWordsList.forEach(che=>{
if(che.isInterval==0){
che.name=che.name+che.unit+'-'+che.endName+che.unit;
}
})
}
})
this.recordList = [...this.recordList, ...list]; this.recordList = [...this.recordList, ...list];
this.totalRecord=data.totalPage; this.totalRecord=data.totalPage;
}) })


Loading…
Cancel
Save