<template>
 <keep-alive include="ProcessTableHome">
   <process-table-home @changeOperation="changeOperation" v-if="!operationType"/>
   <process-table-detail :operation-type="operationType" :current-op-obj="currentOpObj" @changeOperation="changeOperation" v-else/>
 </keep-alive>
</template>

<script>
import ProcessTableHome from "@/view/other/c-views/data-watch/data-gather-watch/process-table/ProcessTableHome.vue";
import {useClickRouterToHome} from "@/unit/use-method/usePagination";
import ProcessTableDetail from "@/view/other/c-views/data-watch/data-gather-watch/process-table/ProcessTableDetail.vue";

export default {
  name: "ProcessTable",
  components: {ProcessTableDetail, ProcessTableHome},
  setup() {
    const {currentOpObj,operationType,changeOperation} = useClickRouterToHome()
    return {
      currentOpObj,operationType,changeOperation
    }
  }
}
</script>

<style scoped lang="scss">

</style>
