<template>
  <div style="background:white">
    <search :importData="importData" :editData="editData" :noveltySearch='noveltySearch'></search>
  </div>
</template>

<script>
import search from './search.vue';
export default {
  components: {
    search
  },
  props: {},
  data() {
    return {
      importData:this.$route.query,
      editData:null
    };
  },
  watch: {},
  computed: {
    // importData() {
    //   return this.$route.query
    // },
    isEdit(){
      return this.$route.query.isEdit
    },
    noveltySearch(){
      return this.$route.query.noveltySearch
    },
  },
  created() {
    if(this.isEdit){
      var params = this.$s.getSession('conditionImport')
      if(!params){
        return
      }
      if(params.importData){
        this.importData = params.importData
      }
      if(params.data){
        this.editData = params.data
      }
    }else{
      this.$s.setSession('conditionImport',null)
    }
  },
  mounted() {
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
</style>