From 669564c536ae5c0fb1ea2f703ea07cd6b6207124 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 30 八月 2024 13:36:53 +0800
Subject: [PATCH] update

---
 src/views/ecg/doctor/components/TitlePanel.vue |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/views/ecg/doctor/components/TitlePanel.vue b/src/views/ecg/doctor/components/TitlePanel.vue
index 3fba55b..c39ed01 100644
--- a/src/views/ecg/doctor/components/TitlePanel.vue
+++ b/src/views/ecg/doctor/components/TitlePanel.vue
@@ -3,18 +3,15 @@
 import {useUserStore} from "@/store/modules/user";
 import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor";
 
-const userStore = useUserStore();
-
 defineComponent({
   name: 'TitlePanel'
 })
 
-const roomBedVO: RoomBedVO = {
-  roomId: userStore.room!.roomId,
-  bedNo: userStore.room!.bedNo
-}
-
 const  props = defineProps({
+  room: {
+    type: Object as PropType<RoomBedVO>,
+    required: true
+  },
   patientStatistic: {
     type: Object as PropType<PatientStatisticVO>,
     required: true
@@ -26,7 +23,7 @@
 <template>
 <div class="mytitle">
     <div>
-      璇婂{{roomBedVO.roomId}} 宸ヤ綅{{roomBedVO.bedNo}}
+      璇婂{{room.roomId}} 宸ヤ綅{{room.bedNo}}
     </div>
     <div>
     宸插氨璇妠{patientStatistic.finishedNum==undefined ? 0 : patientStatistic.finishedNum}}

--
Gitblit v1.9.3