From e8254cec669f2aa1755a08ea2fdab5ca51e12d70 Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期五, 25 七月 2025 10:24:31 +0800
Subject: [PATCH] ID1625-修改定时任务组件尺寸
---
src/views/mobile/bedsideAuxiliaryScreen/index.vue | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/views/mobile/bedsideAuxiliaryScreen/index.vue b/src/views/mobile/bedsideAuxiliaryScreen/index.vue
index 876f4b5..ab6c350 100644
--- a/src/views/mobile/bedsideAuxiliaryScreen/index.vue
+++ b/src/views/mobile/bedsideAuxiliaryScreen/index.vue
@@ -16,17 +16,21 @@
import { useBedsideAuxiliaryScreenStore } from "@/store/bedsideAuxiliaryScreen";
import { EPageType } from '@/store/type/bedsideAuxiliaryScreen.type';
import { getAvailableHeightByClass } from '@/utils/utils';
+import { useWindowSize } from '@/composables/useWindowSize';
// 未排班时的组件
-const UnplannedSchedule = defineAsyncComponent(() => import('./components/UnplannedSchedule.vue'));
+const UnplannedSchedule = defineAsyncComponent(() => import('./pages/UnplannedSchedule.vue'));
// 未签到时的组件
-const NotSignedIn = defineAsyncComponent(() => import('./components/NotSignedIn.vue'));
+const NotSignedIn = defineAsyncComponent(() => import('./pages/NotSignedIn.vue'));
// 已签到时的组件
-const SignedIn = defineAsyncComponent(() => import('./components/SignedIn.vue'));
+const SignedIn = defineAsyncComponent(() => import('./pages/SignedIn.vue'));
// 治疗中的组件
-const UnderTreatment = defineAsyncComponent(() => import('./components/UnderTreatment.vue'));
+const UnderTreatment = defineAsyncComponent(() => import('./pages/UnderTreatment.vue'));
const bedsideAuxiliaryScreenStore = useBedsideAuxiliaryScreenStore();
const cotentHeight = ref(0);
+const { width, height } = useWindowSize();
+
+
const backgroundColor = computed(() => {
let color = '#DAE5EC';
// 如果是未排班、加载中或未签到页面,背景色为白色
@@ -57,10 +61,10 @@
return name;
});
-watch(
- () => bedsideAuxiliaryScreenStore.deviceCode,
- (newVal: string) => {}
-);
+watch([width, height], () => {
+ cotentHeight.value = getAvailableHeightByClass('content-position')
+});
+
onMounted(() => {
if (bedsideAuxiliaryScreenStore.deviceCode) {
--
Gitblit v1.8.0