<template>
  <div style="margin-right:20px;height: 100%;">
    <wait-card :list="list" :total="total" :loading="listLoading" title="待办督办"/>
  </div>
</template>

<script>
import WaitCard from './waitCard'
import { getSuperviseList } from '@/api/caseSupervise'

export default {
  name: 'WaitSupervise',
  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
      getSuperviseList(this.listQuery).then(response => {
        this.list = response.data.rows
        this.total = response.data.total
        this.listLoading = false
      })
    }
  }
}
</script>

<style scoped>

</style>
