<template>

  <div class="dashboard">


    <el-row :gutter="24">

      <el-col :lg="12" :sm="24" :xs="24">

        <div class="chart-wrapper">
          <lead-bar-chart height="38vh"/>
        </div>

      </el-col>

      <el-col :lg="12" :sm="24" :xs="24">
        <div class="chart-wrapper">
          <customer-bar-chart height="38vh"/>
        </div>
      </el-col>
    </el-row>

    <el-row :gutter="24">
      <el-col :lg="12" :sm="24" :xs="24">
        <div class="chart-wrapper">
          <project-follow height="30vh"/>
        </div>
      </el-col>

      <el-col :lg="12" :sm="24" :xs="24">
        <div class="chart-wrapper">
          <LossProject height="30vh"/>
        </div>
      </el-col>
    </el-row>

  </div>
</template>

<script>

import LeadBarChart from './components/LeadBarChart.vue'
import CustomerBarChart from './components/CustomerBarChart.vue'
import ProjectFollow from './projectFollow/index.vue'
import LossProject from './lossProject/index'

export default {
  name: "Dashboard",
  components: {
    LossProject,
    // LineChart,
    // RaddarChart,
    // PieChart,
    LeadBarChart,
    CustomerBarChart,
    ProjectFollow,
  },
  data() {
    return {};

  },

  created() {
    // 获取国际化     this.$i18n.locale = val
    const lang = localStorage.getItem('local');
    console.log('lang', lang)
    if (lang) {
      this.$i18n.locale = lang;
    }

  },


  methods: {}
};

</script>

<style lang="scss" scoped>
.dashboard {
  // 全屏容器
  height: 100vh;

  //padding: 32px;
  padding: 1rem;
  //background-color: rgb(240, 242, 245);
  background-color: lightblue;
  position: relative;

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 24px;
    border-radius: .75rem;
  }
}

@media (max-width: 1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
