ViewContentLeft.vue 1.92 KB
<template>
  <div class="left">
    <div class="top">
      <view-sub-title title="集团客户总览" />
      <view-tabs />
      <view-pie-group>
        <div slot="1"><Age :height="defaultHeight"></Age></div>
        <div slot="2"><Sex :height="defaultHeight"></Sex></div>
        <div slot="3"><BuyCar :height="defaultHeight"></BuyCar></div>
      </view-pie-group>
    </div>
    <div class="bottom">
      <view-sub-title title="销售数据总览" />
      <view-line-group height="15.9vh">
        <div slot="1"><Flow height="15.9"></Flow></div>
        <div slot="2"><Trend height="15.9"></Trend></div>
      </view-line-group>
      <view-pie-group>
        <div slot="1"><EnterCategory :height="defaultHeight"></EnterCategory></div>
        <div slot="2"><InfoFrom :height="defaultHeight"></InfoFrom></div>
        <div slot="3"><CustomerCategory :height="defaultHeight"></CustomerCategory></div>
      </view-pie-group>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
import datas from '../utils/data'
import Age from '../views/customer/age'
import BuyCar from '../views/customer/buyCar'
import Sex from '../views/customer/sex'
import Flow from '../views/salesData/flow'
import Trend from '../views/salesData/trend'
import CustomerCategory from '../views/salesData/customerCategory'
import InfoFrom from '../views/salesData/infoFrom'
import EnterCategory from '../views/salesData/enterCategory'
export default {
  name: 'ViewContentLeft',
  components: {
    Age,
    BuyCar,
    Sex,
    Flow,
    Trend,
    CustomerCategory,
    InfoFrom,
    EnterCategory
  },
  data() {
    return {
      defaultHeight: datas.DefaultData.defaultPieHeight
    }
  },
  mounted() {
  },
  methods: {
  }
}
</script>

<style scoped lang="scss">
.left {
  display: flex;
  flex-direction: column;
  .top {
    // height: 59%;
    height: 53.3vh;
  }
  .bottom {
    // height: calc(41% - 16px);
    height: 36.8vh;
    margin-top: auto;
  }
}
</style>