ViewContentRight.vue
1.22 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
<!--
* @Description:
* @Author: huyue
* @Date: 2022-06-23 10:52:23
* @LastEditors: huyue
* @LastEditTime: 2022-06-24 14:44:50
-->
<template>
<div class='right'>
<!-- <view-sub-title title="售后数据总览" />-->
<StaticRank :rankDataList='totalRank' name='viewMerchant' numName='viewNum' title='访问排名' />
<StaticRank :rankDataList='totalRank' name='forwardMerchant' numName='forwardMum' title='转发排名' />
<StaticRank :rankDataList='totalRank' name='clueMerchant' numName='clueMum' title='线索排名' />
<StaticRank :rankDataList='totalRank' name='activateMerchant' numName='activateMum' title='激活排名' />
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'ViewContentRight',
components: {},
data() {
return {
// defaultHeight: datas.DefaultData.defaultLineHeight
totalRank: null
}
},
mounted() {
this.getRank()
},
methods: {
getRank() {
this.api.renewal.getRanking().then(res => {
if (res.code == 0) {
this.totalRank = res.data.dataList
}
})
}
}
}
</script>
<style scoped lang='scss'>
.right {
width: 99%;
display: grid;
grid-template-columns: 25% 25% 25% 25%;
}
</style>