<template>
 <keep-alive include="ReportMbHome">
   <report-mb-home  v-model:report-mb-type="reportMbType" @changeOperation="changeOperation" v-if="!operationType"/>
   <report-mb-detail :report-mb-type="reportMbType" :operation-type="operationType" :uuid="currentOpObj.UUID" @changeOperation="changeOperation" v-else/>
 </keep-alive>
</template>

<script>
import {useClickRouterToHome} from "@/unit/use-method/usePagination";
import ProcssMbHome from "@/view/other/c-views/data-handle/zsk/process-mb/ProcssMbHome.vue";
import ProcessMbDetail from "@/view/other/c-views/data-handle/zsk/process-mb/ProcessMbDetail.vue";
import ReportMbHome from "@/view/other/c-views/data-handle/zsk/report-mb/ReportMbHome.vue";
import ReportMbDetail from "@/view/other/c-views/data-handle/zsk/report-mb/ReportMbDetail.vue";
import {ref} from "vue";

export default {
  name: "ReportMb",
  components: {ReportMbDetail, ReportMbHome, ProcessMbDetail, ProcssMbHome},
  setup() {
    const reportMbType = ref('')
    const  {operationType,currentOpObj,changeOperation} = useClickRouterToHome()
    return {
      operationType,
      changeOperation,
      currentOpObj,
      reportMbType
    }
  }
}
</script>

<style scoped lang="scss">

</style>
