<template>
  <Tabs ref="tabs" :value="tabName" @on-click="changeTab">
    <TabPane label="抄送我的" name="0" >
      <workflowCopyList v-if="tabName == '0'"></workflowCopyList>
    </TabPane>
<!--    <TabPane label="我的已办" name="1">
      <workflowDoneList v-if="tabName == '1'"></workflowDoneList>
    </TabPane>
    <TabPane label="我的申请" name="2">
      <workflowApplyList v-if="tabName == '2'"></workflowApplyList>
    </TabPane>-->
  </Tabs>
</template>

<script>
  import workflowCopyList from './workflow-copy-list.vue'

  let $this;
  export default {
    name: 'workflowCopyIndex',
    components: {
      workflowCopyList,
    },
    data() {
      return {
        pageSize: 10,
        tabName:'0'
      }
    },
    methods: {
      changeTab(name){
        this.tabName = name;
      }
    },
    mounted() {
      $this = this;
      this.tabName = this.$route.params.name?this.$route.params.name:'0';
    }
  }
</script>

<style>

</style>
