ViewContentRight.vue 1.22 KB
<!--
 * @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>