|
|
@@ -126,7 +126,13 @@ |
|
|
|
客户等级 |
|
|
|
</view> |
|
|
|
<view class="screen-record-tab"> |
|
|
|
<view :class="[screen.record==0?'screen-record-chose':'screen-record-nochose']" |
|
|
|
<block v-for="(item,index) in levelList" :key="index"> |
|
|
|
<view :class="[item.isShow?'screen-record-chose':'screen-record-nochose']" |
|
|
|
@click="choiceLevel(index,item.value)"> |
|
|
|
{{item.label}} |
|
|
|
</view> |
|
|
|
</block> |
|
|
|
<!-- <view :class="[screen.record==0?'screen-record-chose':'screen-record-nochose']" |
|
|
|
@click="recordclick(0)"> |
|
|
|
A |
|
|
|
</view> |
|
|
@@ -141,7 +147,7 @@ |
|
|
|
<view :class="[screen.record==3?'screen-record-chose':'screen-record-nochose']" |
|
|
|
@click="recordclick(3)"> |
|
|
|
D |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 客户来源 --> |
|
|
@@ -250,6 +256,7 @@ |
|
|
|
<u-tabbar :mid-button="true" activeColor="#1296db" inactiveColor="#999999" v-model="current" :list="tabbarList"> |
|
|
|
</u-tabbar> |
|
|
|
</view> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
@@ -305,7 +312,7 @@ |
|
|
|
agentId: '', |
|
|
|
agentIdtext: '', |
|
|
|
visitRecord: [], |
|
|
|
record: null, |
|
|
|
record: [], |
|
|
|
cunsumerTips: '', |
|
|
|
cunsumerTipsid: '' |
|
|
|
}, |
|
|
@@ -362,6 +369,23 @@ |
|
|
|
value: 4, |
|
|
|
isShow: false, |
|
|
|
}, ], |
|
|
|
levelList: [{ |
|
|
|
label: 'A', |
|
|
|
value: 0, |
|
|
|
isShow: false, |
|
|
|
}, { |
|
|
|
label: 'B', |
|
|
|
value: 1, |
|
|
|
isShow: false, |
|
|
|
}, { |
|
|
|
label: 'C', |
|
|
|
value: 2, |
|
|
|
isShow: false, |
|
|
|
}, { |
|
|
|
label: 'D', |
|
|
|
value: 3, |
|
|
|
isShow: false, |
|
|
|
}, ], |
|
|
|
isRefresh:false |
|
|
|
} |
|
|
|
}, |
|
|
@@ -523,6 +547,19 @@ |
|
|
|
this.screen.visitRecord.push(e) |
|
|
|
} |
|
|
|
}, |
|
|
|
choiceLevel(index,e) { |
|
|
|
if (this.levelList[index].isShow == true) { |
|
|
|
this.levelList[index].isShow = false; |
|
|
|
for (var i = 0; i < this.screen.record.length; i++) { |
|
|
|
if (this.screen.record[i] === e) { |
|
|
|
this.screen.record.splice(i, 1); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.levelList[index].isShow = true; |
|
|
|
this.screen.record.push(e) |
|
|
|
} |
|
|
|
}, |
|
|
|
screenvisitRecord(i) { |
|
|
|
if (this.screen.visitRecord == i) { |
|
|
|
this.screen.visitRecord = '' |
|
|
@@ -580,17 +617,20 @@ |
|
|
|
if (this.screen.visitRecord.length > 0) { |
|
|
|
parames.query.visitRecords = this.screen.visitRecord.join(','); |
|
|
|
} |
|
|
|
if (this.screen.record == 0) { |
|
|
|
parames.query.levels = ["1"] |
|
|
|
} else if (this.screen.record == 1) { |
|
|
|
parames.query.levels = ["2"] |
|
|
|
} else if (this.screen.record == 2) { |
|
|
|
parames.query.levels = ["3"] |
|
|
|
} else if (this.screen.record == 3) { |
|
|
|
parames.query.levels = ["4"] |
|
|
|
} else { |
|
|
|
parames.query.levels = null |
|
|
|
if (this.screen.record.length > 0) { |
|
|
|
parames.query.level = this.screen.record.join(','); |
|
|
|
} |
|
|
|
// if (this.screen.record == 0) { |
|
|
|
// parames.query.levels = ["1"] |
|
|
|
// } else if (this.screen.record == 1) { |
|
|
|
// parames.query.levels = ["2"] |
|
|
|
// } else if (this.screen.record == 2) { |
|
|
|
// parames.query.levels = ["3"] |
|
|
|
// } else if (this.screen.record == 3) { |
|
|
|
// parames.query.levels = ["4"] |
|
|
|
// } else { |
|
|
|
// parames.query.levels = null |
|
|
|
// } |
|
|
|
this.$u.post("/customer/customerManagement", parames).then(data => { |
|
|
|
|
|
|
|
if(this.staTime && this.endtime) { |
|
|
@@ -665,13 +705,17 @@ |
|
|
|
agentId: '', |
|
|
|
agentIdtext: '', |
|
|
|
visitRecord: '', |
|
|
|
record: null, |
|
|
|
record: [], |
|
|
|
cunsumerTips: '', |
|
|
|
cunsumerTipsid: '' |
|
|
|
cunsumerTipsid: '', |
|
|
|
level:'' |
|
|
|
} |
|
|
|
this.visitList.map(i=>{ |
|
|
|
i.isShow = false |
|
|
|
}) |
|
|
|
this.levelList.map(i=>{ |
|
|
|
i.isShow = false |
|
|
|
}) |
|
|
|
this.nextPage = 1; |
|
|
|
this.recordList = []; |
|
|
|
// this.screenShow = false; |
|
|
|