<template>
  <div>
    <OutSourced v-show="activeName=='OutSourced'" ref="outSourced" active-name="List"/>
    <List v-if="activeName=='List'" ref="list" />
    <Info v-if="activeName=='Info'" />
    <recordList v-if="activeName=='recordList'" />
  </div>
</template>

<script>
import List from './components/list'
import Info from './components/info'
import recordList from './components/record-list'
import OutSourced from '@/components/OutSourced/index'

export default {
  components: {
    List: List,
    OutSourced: OutSourced,
    Info: Info,
    recordList: recordList
  },
  data() {
    return {
      activeName: 'OutSourced',
      OUTSOURCED_ID: '',
      KEYPROJECTCHECK_ID: ''
    }
  },
  watch: {
    activeName(val) {
      if (val == 'OutSourced') {
        this.$refs.outSourced.getQuery()
      }
    }
  }
}
</script>

<style scoped>
</style>
