<!--
 * @Description: 珠海三溪小镇驾驶舱首页
 * @Author: 王晓颖
 * @Date: 2021-07-13 15:18:56
 -->
<template>
  <common-layout1 class="layout" :loading="loading" titleHeight="1.7rem">
    <top-header slot="title" title="珠海三溪科创小镇智慧园区平台"/>
    <!--左-->
    <dv-border-box-12 slot="left">
      <div class="left-container">
        <div class="left">
          <statistic-count/>
        </div>
        <div class="left">
          <biz-statistics/>
        </div>
        <div class="left">
          <lamp-alarm-history/>
        </div>
      </div>
    </dv-border-box-12>
    <!--中-->
    <dv-border-box-12 slot="middle">
      <!--<amap/>-->
      <map-view/>
    </dv-border-box-12>
    <!--右-->
    <dv-border-box-12 slot="right">
      <div class="right-container">
        <div class="right">
          <pipe-safety/>
        </div>
        <div class="right">
          <device-alarm-rank/>
        </div>
        <div class="right">
          <device-alarm-history/>
        </div>
      </div>
    </dv-border-box-12>
  </common-layout1>
</template>

<script>
  import CommonLayout1 from "../layout/commonLayout1"
  import TopHeader from "./mainComponents/topHeader"
  import StatisticCount from "./mainComponents/statisticCount";
  import BizStatistics from "./mainComponents/bizStatistic";
  // import Amap from "../../components/amap/amap";
  import DeviceAlarmRank from "./mainComponents/deviceAlarmRank";
  import DeviceAlarmHistory from "./mainComponents/deviceAlarmHistory";
  import PipeSafety from "./mainComponents/pipeSafety";
  import LampAlarmHistory from "./mainComponents/lampAlarmHistory";
  import MapView from "./mainComponents/mapView";
  export default {
    name: "mainDashboard",
    components: {
      MapView,
      LampAlarmHistory,
      PipeSafety,
      DeviceAlarmHistory,
      DeviceAlarmRank,
      // Amap,
      BizStatistics,
      StatisticCount,
      TopHeader,
      CommonLayout1},
    data(){
      return {
        loading: false
      }
    }
  }
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.layout{
  background-image: url("../../assets/img/global/pageBg.png");
  background-size: cover;
  background-position: center center;
  .left-container, .right-container{
    width: 100%;
    height:100%;
    display: flex;
    padding: 0.2rem;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    .left, .right{
      height:33%;
      width:100%;
    }
  }
}
</style>
