Newer
Older
CallCenterFront / src / views / dashboard / index.vue
StephanieGitHub on 20 Apr 2020 1 KB MOD:分机管理
<template>
  <div class="dashboard-container">
    <!--<div class="dashboard-text">欢迎您,{{ name }}</div>-->
    <el-row>
      <el-col :span="8">
        <wait-handle/>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import WaitHandle from './components/waitHandle'

export default {
  name: 'Dashboard',
  components: { WaitHandle },
  computed: {
    ...mapGetters([
      'name',
      'roleNames',
      'roleTips',
      'wellTypes',
      'deviceTypes',
      'communications',
      'area'
    ])
  },
  mounted() {
    this.fetchCaseRemind()
  },
  methods: {
    fetchCaseRemind() {
      // TODO: 调用后台接口
      
      this.$notify.warning({
        title: '待办',
        dangerouslyUseHTMLString: true,
        message: '您有1条待办事件<br/>您有2条待办督办',
        duration: 0,
        position: 'bottom-right'
      })
    }
  }
}
</script>

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