CustomerRanking.vue
2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<template>
<div class="store-ranking-wrap">
<template v-if="staffDistributionVOList.length > 0">
<div class="store-rank-inline flex" v-for="i in staffDistributionVOList" :key="i.id">
<div class="customers-portrait">
<template v-if="i.staffId != -1&&i.thumbAvatar">
<img :src="i.thumbAvatar" alt="" />
</template>
<template v-else>
<img src="@/assets/images/general.png" alt="" />
</template>
</div>
<div>
<div class="gray-text staffName">{{ i.staffName }}</div>
<div class="text-message">占{{ (i.newlyQyRatio * 100).toFixed(0) }}%</div>
</div>
<div class="gray-text location">
新增
<span>{{ i.newlyQyCount }}</span>
位客户
</div>
</div>
</template>
<template v-else>
<Empty></Empty>
</template>
</div>
</template>
<script type='text/ecmascript-6'>
import { mapState } from 'vuex'
export default {
name: 'CustomerRanking',
data() {
return {}
},
computed: {
...mapState({
tabIndex: state => state.report.tabIndex,
tabType: state => state.report.tabType,
userInfo: state => state.report.userInfo,
staffDistributionVOList: state => state.report.staffDistributionVOList
})
},
mounted() {},
methods: {}
}
</script>
<style lang='scss' scoped>
.store-ranking-wrap {
height: auto;
.store-rank-inline {
border-bottom: 1px solid #e8e8f2;
background-color: #fff;
height: 70px;
box-sizing: border-box;
&:last-child {
border-bottom: 1px solid #ffffff;
}
.customers-portrait {
width: 40px;
height: 40px;
margin: 0 15px 0 20px;
img {
width: 100%;
height: 100%;
border-radius: 50%;
}
}
.text-message {
margin-top: 2px;
}
.staffName {
width: 120px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
}
.gray-text {
span {
font-size: 14px;
font-weight: 500;
color: #3975c6;
line-height: 15px;
margin: 0 7px;
width: 26px;
}
}
.location {
position: absolute;
right: 25px;
}
}
}
</style>