<template>
  <div>
    <OutSourced v-show="activeName=='OutSourced'" ref="outSourced" :other-show="true" active-name="List"/>
    <List v-show="activeName=='List'" ref="list" />
    <List2 v-if="activeName=='List2'" />
    <Info v-if="activeName=='Info'" />
    <hidden-info v-if="activeName==='HiddenInfo'"/>
  </div>
</template>

<script>
import List from './components/list'
import Info from './components/info'
import List2 from './components/list2'
import HiddenInfo from './components/hiddenInfo.vue'
import OutSourced from '@/components/OutSourced/index'

export default {
  components: {
    HiddenInfo: HiddenInfo,
    OutSourced: OutSourced,
    List: List,
    Info: Info,
    List2: List2
  },
  data() {
    return {
      activeName: 'OutSourced',
      KEYPROJECTPUNISH_ID: '',
      HIDDEN_ID: ''
    }
  },
  watch: {
    activeName(val) {
      if (val == 'List') {
        this.$refs.list.getList()
      }
    }
  }
}
</script>

<style scoped>
</style>
