| src/store/type/bedsideAuxiliaryScreen.type.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/mobile/bedsideAuxiliaryScreen/components/UnderTreatment.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/mobile/bedsideAuxiliaryScreen/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/store/type/bedsideAuxiliaryScreen.type.ts
@@ -158,7 +158,7 @@ consumablesCollection: ConsumablesCollection; pageType: PageType; notSignedIn: NotSignedIn; nderTreatment: UnderTreatment; underTreatment: UnderTreatment; } export enum EPageType { @@ -346,7 +346,7 @@ treatmentStatus: EMedStatus.NOT_CHECKED_IN, // 透析状态 consumablesCollection: defaultconsumablesCollection(), // 未排班时需要的数据 notSignedIn: defalutNotSignedIn(), // 未签到时需要的数据 nderTreatment: defaultUnderTreatment(), // 治疗中需要的数据 underTreatment: defaultUnderTreatment(), // 治疗中需要的数据 }; }; src/views/mobile/bedsideAuxiliaryScreen/components/UnderTreatment.vue
New file @@ -0,0 +1,47 @@ <template> <div class="under-treatment-container" :style="{ '--height': height + 'px' }"> <div class="row-1"> <div class="row-1-col-1"> <el-image :src="pageData.patientPhone" style="width: 100%; height: 100%" > <template #placeholder> <div class="image-slot">加载中<span class="dot">...</span></div> </template> </el-image> </div> </div> <div class="row-2"></div> <div class="row-3"></div> </div> </template> <script lang="ts" setup name="UnderTreatment"> import { computed } from "vue"; // @ts-ignore import Card from "./Card.vue"; import { useBedsideAuxiliaryScreenStore } from "@/store/bedsideAuxiliaryScreen"; interface Props { height: number; } const props = defineProps<Props>(); const bedsideAuxiliaryScreenStore = useBedsideAuxiliaryScreenStore(); const pageData = computed(() => { return Object.assign(bedsideAuxiliaryScreenStore.deviceData.underTreatment, { patientPhone: bedsideAuxiliaryScreenStore.deviceData.patientPhone, }); }); </script> <style lang="less" scoped> .under-treatment-container { display: flex; align-items: center; flex-direction: column; height: var(--height); overflow: hidden; } </style> src/views/mobile/bedsideAuxiliaryScreen/index.vue
@@ -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; });