<template>
  <div class="data-home-index">
    <baseBg :name-val="'entities'" top-title="生产经主体管理系统">
      <template #center>
        <el-row style="width: 100%; height: 100%">
          <el-col :span="6" class="left-charts">
            <div class="left-charts-item">
              <customBack top-title="生产经营主体类别统计" :top-postion="'left'">
                <template #back>
                  <entitiesCategoryCharts></entitiesCategoryCharts>
                </template>
              </customBack>
            </div>
            <div class="left-charts-item">
              <customBack top-title="各乡镇经营主体统计" :top-postion="'left'">
                <template #back>
                  <entitiesStatistics></entitiesStatistics>
                </template>
              </customBack>
            </div>
            <div class="left-charts-item">
              <customBack top-title="生产经营主体信息" :top-postion="'left'">
                <template #back>
                  <entitieslist></entitieslist>
                </template>
              </customBack>
            </div>
          </el-col>
          <el-col :span="12">
            <centerMap></centerMap>
          </el-col>
          <el-col :span="6" class="right-charts">
            <div class="right-charts-item">
              <customBack top-title="经营类目统计" :top-postion="'right'">
                <template #back>
                  <categoryCharts></categoryCharts>
                </template>
              </customBack>
            </div>
            <div class="right-charts-item">
              <customBack top-title="类目效益统计(亿元)" :top-postion="'right'">
                <template #back>
                  <benefitCharts></benefitCharts>
                </template>
              </customBack>
            </div>
            <div class="right-charts-item">
              <customBack top-title="热门产品" :top-postion="'right'">
                <template #back>
                  <hotCharts></hotCharts>
                </template>
              </customBack>
            </div>
          </el-col>
        </el-row>
      </template>
    </baseBg>
  </div>
</template>
<script setup>
import centerMap from '@/components/centerMap.vue';
import categoryCharts from './components/categoryCharts.vue';
import entitieslist from './components/entitieslist.vue';
import hotCharts from './components/hotCharts.vue';
import benefitCharts from './components/benefitCharts.vue';
import entitiesStatistics from './components/entitiesStatistics.vue';
import entitiesCategoryCharts from './components/entitiesCategoryCharts.vue';
</script>
<style lang="scss" scoped>
.data-home-index {
  .left-charts {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    flex-direction: column;
  }
  .left-charts-item {
    width: 100%;
    height: calc((100% - 30px) / 3);
  }

  .right-charts {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    flex-direction: column;
  }
  .right-charts-item {
    width: 100%;
    height: calc((100% - 30px) / 3);
  }
}
</style>
