enterCategory.vue 995 Bytes
<!--
 * @Description: 进店类型
 * @Author: huyue
 * @Date: 2022-06-23 15:05:21
 * @LastEditors: huyue
 * @LastEditTime: 2022-06-23 17:13:03
-->
<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" :colors="chart.colors" @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: 'EnterCategory',
  mixins: [salesMixin],
  data() {
    return {
      type: 'entertype',
      chart: {
        id: 'enterCategory-pie',
        colors: ['#F5AA01', '#FF6E76', '#4FA0FF']
      }
    }
  },
}
</script>