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

<script>
import QualityCheckTaskHome from "@/view/other/c-views/data-handle/data-quelity-check/quality-check-task/QualityCheckTaskHome.vue";
import QualityCheckTaskDetail
  from "@/view/other/c-views/data-handle/data-quelity-check/quality-check-task/QualityCheckTaskDetail.vue";
import {useClickRouterToHome} from "@/unit/use-method/usePagination";

export default {
  name: "QualityCheckTask",
  components: {QualityCheckTaskDetail, QualityCheckTaskHome},
  setup() {
    const {currentOpObj,changeOperation,operationType} = useClickRouterToHome()
    return {
      currentOpObj,changeOperation,operationType
    }
  }
}
</script>

<style scoped lang="scss">

</style>
