单应用项目,可以创建很多独立工具类页面 ,不用登录 初始化的页面
zhangchen
2025-07-21 11bd2ae19494932f7f6071425e858ce249b73179
src/views/mobile/bedsideAuxiliaryScreen/index.vue
@@ -1,6 +1,6 @@
<template>
  <div class="bedside-auxiliary-screen-container">
    <Header :type="0" device-no="03" />
    <Header />
    <div class="bedside-auxiliary-screen-content">
        <div class="content-position"></div>
        <!-- <UnplannedSchedule v-if="cotentHeight > 0" :height="cotentHeight"  /> -->
@@ -20,18 +20,26 @@
const UnplannedSchedule = defineAsyncComponent(() => import('./components/UnplannedSchedule.vue'));
// 未签到时的组件
const NotSignedIn = defineAsyncComponent(() => import('./components/NotSignedIn.vue'));
// 治疗中的组件
const UnderTreatment = defineAsyncComponent(() => import('./components/UnderTreatment.vue'));
const bedsideAuxiliaryScreenStore = useBedsideAuxiliaryScreenStore();
const cotentHeight = ref(0);
const currentComponent = computed(() => {
  let name: any = UnplannedSchedule;
  // 未签到
  // 未排班
  if ([EPageType.NOT_INIT, EPageType.LOADING, EPageType.UNPLANNED_SCHEDULE].includes(bedsideAuxiliaryScreenStore.deviceData.pageType)) {
    name = UnplannedSchedule;
  }
  // 未签到
  else if (bedsideAuxiliaryScreenStore.deviceData.pageType === EPageType.NOT_SIGNED_IN) {
    name = NotSignedIn
  }
  // 已签到
  else if (bedsideAuxiliaryScreenStore.deviceData.pageType === EPageType.SIGNED_IN) {
  } else {
    name = UnderTreatment;
  }
  return name;
});