From 92592ccd3b027d0cd102ecb9f87cdc1d6e696bdd Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期四, 10 四月 2025 08:53:53 +0800 Subject: [PATCH] 医生登录界面 能上下滚动 --- src/views/ecg/room/RoomSetting.vue | 51 +++++++++++++++++++++++++++++++++------------------ 1 files changed, 33 insertions(+), 18 deletions(-) diff --git a/src/views/ecg/room/RoomSetting.vue b/src/views/ecg/room/RoomSetting.vue index f95e1bc..b736add 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"> + {{ checkTypeStore.getCheckTypeName(Number(key)) }} {{ value }} + </div> + <div>宸ヤ綅姒傚喌锛氬紑鏀剧殑宸ヤ綅 鏈夊尰鐢熷伐浣� 鍙備笌鍒嗘祦宸ヤ綅</div> + <div>妫�鏌ョ被鍨� 寮�鏀剧殑宸ヤ綅 (妫�鏌�/棰嗙敤 | 瀹夎) 鏈夊尰鐢熷伐浣� (妫�鏌�/棰嗙敤 | 瀹夎)</div> + </el-aside> + </el-container> </template> <script setup lang="ts"> @@ -21,6 +31,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 +39,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