<template>
  <div id="dataView">
    <dv-full-screen-container>
      <div class="main-header">
        <div class="mh-left">
          技术支持: 信息中心
        </div>
        <div class="mh-middle">
          XXXX电子档案
        </div>
        <div class="mh-right">
          <dv-border-box2 style="width: 120px; height: 50px; line-height: 50px; text-align:center;margin-left:200px;">
            综合管理台
          </dv-border-box2>
        </div>
      </div>

      <dv-border-box1 class="main-container">
        <dv-border-box3 class="left-chart-container">
          <LeftChart1 />
          <LeftChart2 />
          <LeftChart3 />
        </dv-border-box3>
        <div class="right-main-container">
          <div class="rmc-top-container">
            <dv-border-box8 class="rmctc-left-container">
              <CenterCmp />
            </dv-border-box8>

            <div class="rmctc-right-container">
              <dv-border-box9 class="rmctc-chart-1">
                <RightChart1 />
              </dv-border-box9>

              <dv-border-box4 class="rmctc-chart-2" :reverse="true">
                <RightChart2 />
              </dv-border-box4>
            </div>
          </div>

          <dv-border-box4 class="rmc-bottom-container">
            <BottomCharts />
          </dv-border-box4>
        </div>
      </dv-border-box1>
    </dv-full-screen-container>
  </div>
</template>

<script setup name='FullScreenFirstPage' lang="ts">
import { computed, watch } from 'vue'
import { useStore } from 'vuex'
import '../common/common.css'
import LeftChart1 from '../firstPage/LeftChart1.vue'
import LeftChart2 from '../firstPage/LeftChart2.vue'
import LeftChart3 from '../firstPage/LeftChart3.vue'
import CenterCmp from '../firstPage/CenterCmp.vue'
import RightChart1 from '../firstPage/RightChart1.vue'
import RightChart2 from '../firstPage/RightChart2.vue'
import BottomCharts from '../firstPage/BottomCharts.vue'

const store = useStore()
const collapseD = computed(() => {
  return store.state.app.isCollapse
})
watch(
  () => collapseD.value,
  () => {
    setTimeout(() => {
      collapseD.value.$refs.borderBox.initWH()
    }, 300)

  }
)

</script>

<style lang="scss" scoped>
#dataView {
  width: 100%;
  height: 100%;
  background-color: #030409;
  color: #fff;

  #dv-full-screen-container {
    background-image: url('../img/bg.png');
    background-size: 100% 100%;
    box-shadow: 0 0 3px blue;
    display: flex;
    flex-direction: column;
  }

  .main-header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    .mh-left {
      font-size: 20px;
      color: rgb(1, 134, 187);

      a:visited {
        color: rgb(1, 134, 187);
      }
    }

    .mh-middle {
      font-size: 30px;
    }

    .mh-left,
    .mh-right {
      width: 450px;
    }
  }

  .main-container {
    height: calc(100% - 80px);

    :deep(.border-box-content) {
      padding: 20px;
      box-sizing: border-box;
      display: flex;
    }
  }

  .left-chart-container {
    width: 22%;
    padding: 10px;
    display: flex;
    box-sizing: border-box;

    :deep(.border-box-content) {
      flex-direction: column;
    }
  }

  .right-main-container {
    width: 78%;
    padding-left: 5px;
    box-sizing: border-box;
  }

  .rmc-top-container {
    height: 65%;
    display: flex;
  }

  .rmctc-left-container {
    width: 65%;
  }

  .rmctc-right-container {
    width: 35%;
  }

  .rmc-bottom-container {
    height: 35%;
  }

  .rmctc-chart-1 {
    height: 50%;
  }

  .rmctc-chart-2 {
    height: 50%;
  }
}
</style>