<template>
  <div class="data-home-index">
    <baseBg :name-val="'land'" 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>
                  <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>
    </baseBg>
  </div>
</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';
import { reactive } from '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>
