<template>
  <div>
    <List v-show="activeName=='List'" ref="list" />
    <Edit v-if="activeName=='Edit'" />
    <Edit v-if="activeName=='corpInfoEdit'" />
  </div>
</template>

<script>
import List from './components/list'
import Edit from './components/edit'
import corpInfoEdit from './components/corpInfoEdit'
export default {
  components: {
    List: List,
    Edit: Edit,
    corpInfoEdit: corpInfoEdit,
    CORPINFO_ID: ''
  },
  data() {
    return {
      activeName: 'List'
    }
  },
  watch: {
    activeName(val) {
      if (val == 'List') {
        this.$refs.list.getQuery()
      }
    }
  }
}
</script>

<style scoped>
</style>
