From f030d8a9607cef32ee41e01d96817c7e47681602 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 30 五月 2025 15:18:47 +0800 Subject: [PATCH] 11 --- src/views/ecg/room/RoomSetting.vue | 52 ++++++++++++++++++++++++++++++++++------------------ 1 files changed, 34 insertions(+), 18 deletions(-) diff --git a/src/views/ecg/room/RoomSetting.vue b/src/views/ecg/room/RoomSetting.vue index f95e1bc..a16a12c 100644 --- a/src/views/ecg/room/RoomSetting.vue +++ b/src/views/ecg/room/RoomSetting.vue @@ -1,19 +1,29 @@ <template> - <div style="display: flex; flex-direction: column; align-items: center;"> - <div>寮�璇婃椂闂达細{{ openingPeriod }} 鐩戞帶淇℃伅: {{ monitorInfo.openingFlag }} {{ monitorInfo.queueNum }} {{ monitorInfo.activeQueueNum }}</div> - <div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px"> - <div class=wrap v-for="(value, key) in bedMap" :key="key"> - <RoomStatus :title="key" :bedList="value" @refresh="getList"/> - </div> - </div> - <div> - <el-button @click="startBiz" > 鎵嬪姩寮�璇� </el-button> - <el-button @click="closeBiz" > 鎵嬪姩闂瘖 </el-button> - <el-button @click="resetRoom" > 閲嶇疆璇婂 </el-button> - <el-button @click="resetSchedule" > 閲嶇疆瀹氭椂浠诲姟 </el-button> - <el-button @click="refresh" > 鍒锋柊 </el-button> - </div> - </div> + <el-container> + <el-main> + <div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px"> + <div class=wrap v-for="(value, key) in bedMap" :key="key"> + <RoomStatus :title="key" :bedList="value" @refresh="getList"/> + </div> + </div> + <div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px"> + <el-button @click="startBiz" > 鎵嬪姩寮�璇� </el-button> + <el-button @click="closeBiz" > 鎵嬪姩闂瘖 </el-button> + <el-button @click="resetRoom" > 閲嶇疆璇婂 </el-button> + <el-button @click="resetSchedule" > 閲嶇疆瀹氭椂浠诲姟 </el-button> + <el-button @click="refresh" > 鍒锋柊 </el-button> + </div> + </el-main> + <el-aside width="250px"> + <div>寮�璇婃椂闂达細{{ openingPeriod }} {{ monitorInfo?.openingFlag }} </div> + <div>宸ヤ綅姒傚喌锛� {{monitorInfo?.openingBedNum}} {{monitorInfo?.docBedNum}} {{monitorInfo?.routingBedNum}} </div> + <div v-for="(value, key) in monitorInfo.checkTypeBedInfo" :key="key"> + {{ getCheckTypeName(Number(key)) }} {{ value }} + </div> + <div>宸ヤ綅姒傚喌锛氬紑鏀剧殑宸ヤ綅 鏈夊尰鐢熷伐浣� 鍙備笌鍒嗘祦宸ヤ綅</div> + <div>妫�鏌ョ被鍨� 寮�鏀剧殑宸ヤ綅 (妫�鏌�/棰嗙敤 | 瀹夎) 鏈夊尰鐢熷伐浣� (妫�鏌�/棰嗙敤 | 瀹夎)</div> + </el-aside> + </el-container> </template> <script setup lang="ts"> @@ -21,6 +31,8 @@ import { RoomApi, RoomVO, MonitorInfo } from '@/api/ecg/room' import { QueueApi } from '@/api/ecg/queue' import { getConfigKey } from '@/api/infra/config' +import {useCheckTypeStore} from "@/store/modules/checkType"; +import {getCheckTypeName} from "../../../utils/checkTypeFormatter"; defineOptions({ name: 'RoomSetting' }) @@ -28,11 +40,15 @@ const openingPeriod = ref<string>('') const monitorInfo = ref<MonitorInfo>({ - queueNum : 0, - activeQueueNum : 0, - openingFlag : 0 + openingBedNum: 0, + docBedNum: 0, + routingBedNum: 0, + openingFlag: 0, + checkTypeBedInfo: {} }) +const checkTypeStore = useCheckTypeStore(); + const getOpeningPeriod = async () => { const data = await getConfigKey('ecg.openingtime') openingPeriod.value = data -- Gitblit v1.9.3