<template>
  <matter-search-home  @changeOperation="changeOperation" v-if="!operationType"  />
  <matter-search-edit  :current-op-obj="currentOpObj" :operation-type="operationType" @changeOperation="changeOperation" v-else  />
</template>

<script>
import MatterSearchHome
  from "@/views/main/c-views/credit-information/commission-credit-information-database-search/matter-search/MatterSearchHome.vue";
import MatterSearchEdit
  from "@/views/main/c-views/credit-information/commission-credit-information-database-search/matter-search/MatterSearchEdit.vue";
import {useClickRouterToHome} from "@/units/use-method/usePagination";
export default {
  name: "MatterSearch",
  components: {MatterSearchEdit, MatterSearchHome},
  setup(){
    const {changeOperation,operationType,currentOpObj} =useClickRouterToHome();
    return {
      changeOperation,operationType,currentOpObj
    }
  }
}
</script>

<style scoped>

</style>