<template>
  <div class="index-box">
    <div class="center_left">
      <ItemWrap class="center_left-top center_lr-item" title="工单办理(日)">
        <LeftTop />
      </ItemWrap>
      <ItemWrap
          class="center_left-center center_lr-item"
          title="来源占比(月)"
      >
        <LeftCenter />
      </ItemWrap>
      <ItemWrap
          class="center_left-bottom center_lr-item"
          title="来电实况"
          style="padding: 0 10px 16px 10px"
      >
        <LeftBottom />
      </ItemWrap>
    </div>
    <div class="center_center">
      <CenterMap class="center_center_top" title="案件分布" />
      <ItemWrap class="center_center-bottom" title="工单类型统计(月)">
        <CenterBottom />
      </ItemWrap>
    </div>
    <div class="center_right">
      <ItemWrap class="center_left-bottom center_lr-item" title="办理情况">
        <RightTop />
      </ItemWrap>
      <ItemWrap
          class="center_left-bottom center_lr-item"
          title="问题高发"
          style="padding: 0 10px 16px 10px"
      >
        <RightCenter />
      </ItemWrap>
      <ItemWrap class="center_left-bottom center_lr-item" title="工单概览 ">
        <RightBottom />
      </ItemWrap>
    </div>
  </div>
</template>
<script setup lang="ts">
import ItemWrap from "@/components/item-wrap";
import LeftTop from "./left-top.vue";
import LeftCenter from "./left-center.vue";
import LeftBottom from "./left-bottom.vue";
import CenterMap from "./center-map.vue";
import CenterBottom from "./center-bottom.vue";
import RightTop from "./right-top.vue";
import RightCenter from "./right-center.vue";
import RightBottom from "./right-bottom.vue";
</script>
<style scoped lang="scss">
.index-box {
  width: 100%;
  display: flex;
  min-height: calc(100% - 64px);
  justify-content: space-between;
}
//左边 右边 结构一样
.center_left,
.center_right {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  width: 540px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.center_center {
  flex: 1;
  margin: 0 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  .center_center-bottom {
    height: 315px;
  }
}

.center_lr-item {
  height: 310px;
}
</style>
