<template>
  <div class="app-container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="私人客户" name="01">
        <PrivateCustomer :typeCode="activeName" ref="privateRef" />
      </el-tab-pane>
      <el-tab-pane label="待办客户" name="02">
        <TodoCustomer :typeCode="activeName" ref="todoRef" />
      </el-tab-pane>
      <el-tab-pane label="政企客户" name="03">
        <CorpCustomer :typeCode="activeName" ref="corpRef" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import PrivateCustomer from '@/views/base/customer/components/PrivateCustomer.vue'
import TodoCustomer from '@/views/base/customer/components/TodoCustomer.vue'
import CorpCustomer from '@/views/base/customer/components/CorpCustomer.vue'
export default {
  name: "CustomerMain",
  components: {
    PrivateCustomer, TodoCustomer, CorpCustomer
  },
  data() {
    return {
      activeName: '01',
    };
  },
  created() {
    this.activeName = '01'
  },
  methods: {

    /** tab点击方法 */
    handleClick(tab, event) {

    }

  }
};
</script>
