<template>
  <rt-multi-tab-lookup-view
    :tablist="tablist"
    :placeholder="placeholder"
    :firstOwnerKey="firstOwnerKey"
    :firstBusKey="firstBusKey"
    :firstNameKey="firstNameKey"
    :secondNameKey="secondNameKey"
    :selectTitle="selectTitle"
    :firstParam="firstParam"
    :secondParam="secondParam"
    :firstGetDateName="firstGetDateName"
    :secondGetDateName="secondGetDateName"
    :firstOrderby="firstOrderby"
    :secondOrderby="secondOrderby"
    :title="title"
    :name="name"
    :filtered="filtered"
  ></rt-multi-tab-lookup-view>
</template>

<script>
import rtMultiTabLookupView from './rtMultiTabLookupView.vue';
export default {
  components: {
    rtMultiTabLookupView
  },
  data() {
    return {
      title: this.$route.params.title || 'Lookup',
      name: this.$route.params.name,
      tablist: this.$route.params.tablist,
      placeholder: this.$route.params.placeholder,
      firstOwnerKey: this.$route.params.firstOwnerKey,
      firstBusKey: this.$route.params.firstBusKey,
      firstNameKey: this.$route.params.firstNameKey,
      secondNameKey: this.$route.params.secondNameKey,
      selectTitle: this.$route.params.selectTitle,
      firstParam: this.$route.params.firstParam,
      secondParam: this.$route.params.secondParam,
      firstGetDateName: this.$route.params.firstGetDateName,
      secondGetDateName: this.$route.params.secondGetDateName,
      firstOrderby: this.$route.params.firstOrderby,
      secondOrderby: this.$route.params.secondOrderby,
      filtered: this.$route.params.filtered
    };
  },
  created() {
    document.title = this.title;
  }
};
</script>
