<template>
  <rt-lookup-view
    :title="title"
    :name="name"
    :getDataName="getDataName"
    :orderby="orderby"
    :param="param"
    :placeholder="placeholder"
    :multiple="multiple"
    :selectedData="selectedData"
    :colList="colList"
	  :filtered="filtered"
    :messageDialog="messageDialog"
    :dialogContent="dialogContent"
  ></rt-lookup-view>
</template>

<script>
import rtLookupView from './rtLookupView.vue';
export default {
  components: {
    rtLookupView
  },
  data() {
    return {
      title: this.$route.params.title || 'Lookup',
      name: this.$route.params.name,
      getDataName: this.$route.params.getDataName,
      orderby: this.$route.params.orderby,
      param: this.$route.params.param,
      multiple: this.$route.params.multiple,
      placeholder: this.$route.params.placeholder,
      selectedData: this.$route.params.selectedData,
      colList: this.$route.params.colList,
	    filtered: this.$route.params.filtered,
      messageDialog: this.$route.params.messageDialog ? this.$route.params.messageDialog : false,
      dialogContent: this.$route.params.dialogContent ? this.$route.params.dialogContent : { title: '', contentTitle: '', messageLable: '' }
    };
  },
  created() {
    document.title = this.title;
  }
};
</script>
