Newer
Older
XuZhouCallCenterFront / src / views / dashboard / components / waitHandle.vue
StephanieGitHub on 22 Apr 2020 936 bytes MOD: 加跳转
<template>
  <div style="margin-right:20px;height: 100%;">
    <wait-card :list="list" :total="total" :loading="listLoading" title="待办事件" @detail="goDetail"/>
  </div>
</template>

<script>
import WaitCard from './waitCard'
import { workList } from '@/api/callCase'

export default {
  name: 'WaitHandle',
  components: { WaitCard },
  data() {
    return {
      listQuery: {
        limit: 10,
        offset: 1
      },
      listLoading: false,
      total: 4,
      list: [],
      column: 'title'
    }
  },
  created() {
    this.fetchData()
  },
  activated() {
    this.fetchData()
  },
  methods: {
    fetchData() {
      this.listLoading = true
      workList(this.listQuery).then(response => {
        this.list = response.data.rows
        this.total = response.data.total
        this.listLoading = false
      })
    },
    goDetail() {
      this.$emit('detail')
    }
  }
}
</script>

<style scoped>

</style>