<template>
    <keep-alive include="violationsrecords">
        <component :is="selectComponent"></component>
    </keep-alive>
</template>
<script>
import Violationsrecords from './violationsrecords'
import ViolationsrecordsDetail from './violationsrecordsDetail'
export default {
  data () {
    return {
      selectComponent: Violationsrecords
    }
  },
  components: {
      Violationsrecords,
      ViolationsrecordsDetail
  },
  methods: {
    init () {
      this.selectComponent = Violationsrecords
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
