From 1b145b5655fa023032c8713bb2375bccdf0fc314 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期四, 24 十月 2024 11:13:40 +0800 Subject: [PATCH] 领用完成后 立即刷新 患者列表 --- src/views/ecg/room/RoomSetting.vue | 49 +++++++++++++++++++++++++++++++------------------ 1 files changed, 31 insertions(+), 18 deletions(-) diff --git a/src/views/ecg/room/RoomSetting.vue b/src/views/ecg/room/RoomSetting.vue index f95e1bc..7e79a0c 100644 --- a/src/views/ecg/room/RoomSetting.vue +++ b/src/views/ecg/room/RoomSetting.vue @@ -1,19 +1,27 @@ <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.queueNum}} {{monitorInfo.activeQueueNum}} {{monitorInfo.priorityQueueNum}} </div> + <div v-for="(value, key) in monitorInfo.checkTypeBedInfo" :key="key"> + {{ checkTypeStore.getCheckTypeName(Number(key)) }} {{ value }} + </div> + </el-aside> + </el-container> </template> <script setup lang="ts"> @@ -21,6 +29,7 @@ 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"; defineOptions({ name: 'RoomSetting' }) @@ -28,11 +37,15 @@ const openingPeriod = ref<string>('') const monitorInfo = ref<MonitorInfo>({ - queueNum : 0, - activeQueueNum : 0, - openingFlag : 0 + queueNum: 0, + activeQueueNum: 0, + priorityQueueNum: 0, + openingFlag: 0, + checkTypeBedInfo: {} }) +const checkTypeStore = useCheckTypeStore(); + const getOpeningPeriod = async () => { const data = await getConfigKey('ecg.openingtime') openingPeriod.value = data -- Gitblit v1.9.3