From 83bc7f6d33934f56fd1df80c7e8975e7c887d606 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 23 十月 2024 22:12:05 +0800
Subject: [PATCH] 检查类型 字典移除,使用 本地存储

---
 src/views/ecg/doctor/components/TitlePanel.vue |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/src/views/ecg/doctor/components/TitlePanel.vue b/src/views/ecg/doctor/components/TitlePanel.vue
index c39ed01..80eb826 100644
--- a/src/views/ecg/doctor/components/TitlePanel.vue
+++ b/src/views/ecg/doctor/components/TitlePanel.vue
@@ -1,13 +1,14 @@
 <script setup lang="ts">
 import {defineComponent, PropType} from "vue";
-import {useUserStore} from "@/store/modules/user";
 import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor";
+import {isNumber} from "@/utils/is";
 
 defineComponent({
   name: 'TitlePanel'
 })
 
 const  props = defineProps({
+  titleType: Number,
   room: {
     type: Object as PropType<RoomBedVO>,
     required: true
@@ -23,13 +24,23 @@
 <template>
 <div class="mytitle">
     <div>
-      璇婂{{room.roomId}} 宸ヤ綅{{room.bedNo}}
+      {{room.roomName || ''}} {{room.bedNo || ''}}
     </div>
-    <div>
-    宸插氨璇妠{patientStatistic.finishedNum==undefined ? 0 : patientStatistic.finishedNum}}
-    鍑嗗涓瓄{patientStatistic.readyNum==undefined ? 0 : patientStatistic.readyNum}}
-    杩囧彿{{patientStatistic.passedNum==undefined ? 0 : patientStatistic.passedNum}}
-    鎺掗槦涓瓄{patientStatistic.queuingNum==undefined ? 0 : patientStatistic.queuingNum}}
+    <div v-if="titleType === 0">
+      宸插彂鏀緖{patientStatistic.receivedNum??0}}
+      鍑嗗涓瓄{patientStatistic.readyNum??0}}
+      杩囧彿{{patientStatistic.passedNum??0}}
+      鎺掗槦涓瓄{patientStatistic.queuingNum??0}}
+    </div>
+    <div v-if="titleType === 1">
+      宸茶鏈簕{patientStatistic.finishedNum??0}}
+      寰呰鏈簕{patientStatistic.receivedNum??0}}
+    </div>
+    <div v-if="titleType === 2">
+      宸叉鏌{patientStatistic.finishedNum??0}}
+      鍑嗗涓瓄{patientStatistic.readyNum??0}}
+      杩囧彿{{patientStatistic.passedNum??0}}
+      鎺掗槦涓瓄{patientStatistic.queuingNum??0}}
     </div>
 </div>
 

--
Gitblit v1.9.3