infoFrom.vue 913 Bytes
<!--
 * @Description: 信息来源
 * @Author: huyue
 * @Date: 2022-06-23 15:05:21
 * @LastEditors: huyue
 * @LastEditTime: 2022-06-23 17:13:23
-->
<template>
  <div>
    <div class="title title-icon">
      <span class="icon"></span>
      <span>信息来源</span>
    </div>
    <div class="flex container">
      <template v-if="salesData.length > 0">
        <pie-chart :id="chart.id" :list="salesData" @pieAction="pieAction"></pie-chart>
        <ran-king :list="brandList"></ran-king>
      </template>
      <div class="empty" style="height: 12.7vh" v-else>
        <img src="../../assets/images/empty.png" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
import { salesMixin } from '../../mixins/index'
export default {
  name: 'InfoFrom',
  mixins: [salesMixin],
  data() {
    return {
      type: 'infosource',
      chart: {
        id: 'infoFrom-pie',
      }
    }
  },
}
</script>