<template>
 <keep-alive include="QualityCheckReportHome">
   <quality-check-report-home @changeOperation="changeOperation" v-if="!operationType" />
   <quality-check-report-detail :current-op-obj="currentOpObj" :operation-type="operationType" @changeOperation="changeOperation" v-else/>
 </keep-alive>
</template>

<script>
import {useClickRouterToHome} from "@/unit/use-method/usePagination";

import QualityCheckReportHome
  from "@/view/other/c-views/data-handle/data-quelity-check/qiality-check-report/QualityCheckReportHome.vue";
import QualityCheckReportDetail
  from "@/view/other/c-views/data-handle/data-quelity-check/qiality-check-report/QualityCheckReportDetail.vue";


export default {
  name: "QualityCheckReport",
  components: {QualityCheckReportDetail, QualityCheckReportHome},
  setup(){
    const {changeOperation,operationType,currentOpObj} = useClickRouterToHome()
    return {
      changeOperation,operationType,currentOpObj
    }
  }
}
</script>

<style scoped lang="scss">

</style>
