<template>
  <div class="data-home-index">
    <baseBg :name-val="'inputs'" 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>
                  <inputsType></inputsType>
                </template>
              </customBack>
            </div>
            <div class="left-charts-item">
              <customBack top-title="投入品生产企业统计" :top-postion="'left'">
                <template #back>
                  <inputsGmp></inputsGmp>
                </template>
              </customBack>
            </div>
            <div class="left-charts-item">
              <customBack top-title="种养殖数据统计" :top-postion="'left'">
                <template #back>
                  <landbreedCharts></landbreedCharts>
                </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>
                  <casesAlerts></casesAlerts>
                </template>
              </customBack>
            </div>
            <div class="right-charts-item">
              <customBack top-title="投入品月度使用统计" :top-postion="'right'">
                <template #back>
                  <monthlyuseCharts></monthlyuseCharts>
                </template>
              </customBack>
            </div>
            <div class="right-charts-item">
              <customBack top-title="投入品经销商分布" :top-postion="'right'">
                <template #back>
                  <dealerDistributionCharts></dealerDistributionCharts>
                </template>
              </customBack>
            </div>
          </el-col>
        </el-row>
      </template>
    </baseBg>
  </div>
</template>
<script setup>
import centerMap from '@/components/centerMap.vue';
import inputsGmp from './components/inputsGmp.vue';
import landbreedCharts from './components/landbreedCharts.vue';
import monthlyuseCharts from './components/monthlyuseCharts.vue';
import dealerDistributionCharts from './components/dealerDistributionCharts.vue';
import casesAlerts from './components/casesAlerts.vue';
import inputsType from './components/inputsType.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>
