<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>
|