<template>
  <div class="dashboard-container">
    <el-row>
      <el-col :span="16">
        <el-card class="welcome-card">
          <span class="dashboard-text">欢迎您，{{ name }} !</span>
        </el-card>
      </el-col>
      <el-col :span="8">
        <clock/>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="16">
        <panel-group-pro/>
      </el-col>
      <el-col :span="8">
        <calendar/>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import Calendar from '../../components/Calendar/calendar'
import Clock from '../../components/Clock/clock'
import PanelGroupPro from './components/PanelGroupPro'

export default {
  name: 'Dashboard',
  components: { PanelGroupPro, Clock, Calendar },
  computed: {
    ...mapGetters([
      'name',
      'roleNames',
      'roleTips',
      'wellTypes',
      'deviceTypes',
      'communications',
      'area'
    ])
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .dashboard {
    &-container {
      margin: 30px;
    }
    &-text {
      font-size: 26px;
      line-height: 40px;
      padding: 10px;
    }
  }
  .welcome-card{
    margin-right:20px;
  }
</style>
