<template>
  <div class="dashboard-container">
    <panel-group ref="panelgroup"/>
    <map-picture ref="mappicture"/>
    <el-row>
      <!--单日测温趋势-->
      <el-col :span="12">
        <el-card shadow="never">
          <temp-one-day/>
        </el-card>
      </el-col>
      <!--单日通行趋势-->
      <el-col :span="12">
        <el-card shadow="never">
          <pass-one-day/>
        </el-card>
      </el-col>
      <!--测温情况分析-->
      <el-col :span="12">
        <el-card shadow="never">
          <temp-analysis/>
        </el-card>
      </el-col>
      <!--通行人数统计-->
      <el-col :span="12">
        <el-card shadow="never">
          <pass-count/>
        </el-card>
      </el-col>
      <!--各单位通行情况-->
      <el-col :span="12">
        <el-card shadow="never">
          <pass-analysis-parent-dept/>
        </el-card>
      </el-col>
      <!--各部门通行情况-->
      <el-col :span="12">
        <el-card shadow="never">
          <pass-analysis/>
        </el-card>
      </el-col>
      <!--就餐情况分析-->
      <el-col :span="12">
        <el-card shadow="never">
          <meal-analysis/>
        </el-card>
      </el-col>
      <!--打印情况分析-->
      <el-col :span="12">
        <el-card shadow="never">
          <print-analysis/>
        </el-card>
      </el-col>
      <!--七日测温趋势-->
      <el-col :span="12">
        <el-card shadow="never">
          <temp-seven-day/>
        </el-card>
      </el-col>
      <!--七日通行趋势-->
      <el-col :span="12">
        <el-card shadow="never">
          <pass-seven-day/>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import PanelGroup from './components/PanelGroup'
import TempAnalysis from './components/tempAnalysis'
import PassCount from './components/passCount'
import PassAnalysis from './components/passAnalysis'
import PrintAnalysis from './components/printAnalysis'
import TempOneDay from './components/tempOneDay'
import PassOneDay from './components/passOneDay'
import TempSevenDay from './components/tempSevenDay'
import PassSevenDay from './components/passSevenDay'
import PassAnalysisParentDept from './components/passAnalysisParentDept'
import MealAnalysis from './components/mealAnalysis'
import MapPicture from './components/mapPicture'
export default {
  name: 'Dashboard',
  components: {
    MapPicture,
    MealAnalysis,
    PassAnalysisParentDept, PassSevenDay, TempSevenDay, PassOneDay, TempOneDay, PrintAnalysis, PassAnalysis, PassCount, TempAnalysis, PanelGroup },
  computed: {
    ...mapGetters([
      'name',
      'roleNames',
      'roleTips',
      'communications'
    ])
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
    margin-top: -15px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
