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

<script>
import List from './components/list'
import Record from './components/record'
export default {
  components: {
    List: List,
    Record: Record
  },
  data() {
    return {
      activeName: 'List',
      INSPECTION_ID: '',
      LICENCE_NO: ''
    }
  },
  watch: {
    activeName(newValue, oldValue) {
      if (newValue == 'List') {
        this.$refs.list.getQuery()
      }
    }
  }
}
</script>

<style scoped>

</style>
