<template>
  <el-row style="width: 100%; height: 100%" class="data-home-index">
    <el-col :span="6" class="left-charts">
      <div class="left-charts-item">
        <customBack top-title="耕地面积统计" :top-postion="'left'">
          <template #back>
            <distributionCharts></distributionCharts>
          </template>
        </customBack>
      </div>
      <div class="left-charts-item">
        <customBack top-title="农村土地资源" :top-postion="'left'">
          <template #back>
            <landCirculation></landCirculation>
          </template>
        </customBack>
      </div>
      <div class="left-charts-item">
        <customBack top-title="项目效益分析" :top-postion="'left'">
          <template #back>
            <landPatrol></landPatrol>
          </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>
            <landuseCharts></landuseCharts>
          </template>
        </customBack>
      </div>
      <div class="right-charts-item">
        <customBack top-title="年度农用地规划面积" :top-postion="'right'">
          <template #back>
            <landPlan></landPlan>
          </template>
        </customBack>
      </div>
      <div class="right-charts-item">
        <customBack top-title="各地农用地利用面积" :top-postion="'right'">
          <template #back>
            <landareaCharts></landareaCharts>
          </template>
        </customBack>
      </div>
    </el-col>
  </el-row>
</template>
<script setup>
import centerMap from '@/components/centerMap.vue';
import distributionCharts from './components/distributionCharts.vue';
import landuseCharts from './components/landuseCharts.vue';
import landareaCharts from './components/landareaCharts.vue';
import landCirculation from './components/landCirculation.vue';
import landPlan from './components/landPlan.vue';
import landPatrol from './components/landPatrol.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>
