<template>
  <div>
    <CorpInfo v-show="activeName=='CorpInfo'" ref="list" />
    <List v-show="activeName=='hoisting_list'" />
    <Detail v-if="activeName=='Detail'"/>
  </div>
</template>

<script>
import CorpInfo from './components/corpInfo'
import List from './components/list'
import Detail from './components/detail'
export default {
  components: { CorpInfo, List, Detail },
  data() {
    return {
      activeName: 'CorpInfo',
      HOISTING_ID: ''
    }
  },
  watch: {
    activeName(val) {
      if (val == 'List') {
        this.$refs.list.getQuery()
      }
    }
  }
}
</script>

<style scoped>
</style>

