From 49206ee0689d44367b9f5de3decf0c3ec02bfb51 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期二, 15 四月 2025 10:56:18 +0800 Subject: [PATCH] update --- src/views/ecg/doctor/components/TitlePanel.vue | 29 +++++++++++++++++++++-------- 1 files changed, 21 insertions(+), 8 deletions(-) diff --git a/src/views/ecg/doctor/components/TitlePanel.vue b/src/views/ecg/doctor/components/TitlePanel.vue index 80eb826..9bb66ee 100644 --- a/src/views/ecg/doctor/components/TitlePanel.vue +++ b/src/views/ecg/doctor/components/TitlePanel.vue @@ -1,7 +1,8 @@ <script setup lang="ts"> import {defineComponent, PropType} from "vue"; import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor"; -import {isNumber} from "@/utils/is"; +import {useCheckTypeStore} from "@/store/modules/checkType"; +import {getCheckTypeName} from "../../../../utils/checkTypeFormatter"; defineComponent({ name: 'TitlePanel' @@ -19,29 +20,41 @@ } }) +const checkTypeStore = useCheckTypeStore(); + </script> <template> <div class="mytitle"> <div> - {{room.roomName || ''}} {{room.bedNo || ''}} + <img v-if="titleType !== room.opType" + src="@/assets/imgs/error.png" + alt="绂佹璁块棶鏈〉闈紝褰撳墠宸ヤ綅涓嶇鍚堣姹�" + width="20px" + /> + {{room.roomName || ''}} {{room.bedNo || ''}} {{room.opType === 1?"棰嗙敤":""}} {{room.opType === 2?"瀹夎":""}} + <div> + <span v-for="(checkType, subIndex) in room.checkTypes" :key="subIndex"> + {{getCheckTypeName(checkType)}} + </span> + </div> </div> <div v-if="titleType === 0"> - 宸插彂鏀緖{patientStatistic.receivedNum??0}} + 宸叉鏌{patientStatistic.finishedNum??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.receivedNum??0}} 鍑嗗涓瓄{patientStatistic.readyNum??0}} 杩囧彿{{patientStatistic.passedNum??0}} 鎺掗槦涓瓄{patientStatistic.queuingNum??0}} </div> + <div v-if="titleType === 2"> + 宸茶鏈簕{patientStatistic.finishedNum??0}} + 寰呰鏈簕{patientStatistic.receivedNum??0}} + </div> </div> </template> -- Gitblit v1.9.3