From 348e6bcdc7fa566a48b96dea53d24ec6dda49e1d Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期五, 11 四月 2025 18:06:40 +0800 Subject: [PATCH] update --- src/views/ecg/room/RoomSetting.vue | 29 +++++++++++++---------------- 1 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/views/ecg/room/RoomSetting.vue b/src/views/ecg/room/RoomSetting.vue index cf36c6e..a16a12c 100644 --- a/src/views/ecg/room/RoomSetting.vue +++ b/src/views/ecg/room/RoomSetting.vue @@ -15,10 +15,13 @@ </div> </el-main> <el-aside width="250px"> - <div>寮�璇婃椂闂达細{{ openingPeriod }} {{ monitorInfo.openingFlag }} {{monitorInfo.queueNum}} {{monitorInfo.activeQueueNum}}</div> + <div>寮�璇婃椂闂达細{{ openingPeriod }} {{ monitorInfo?.openingFlag }} </div> + <div>宸ヤ綅姒傚喌锛� {{monitorInfo?.openingBedNum}} {{monitorInfo?.docBedNum}} {{monitorInfo?.routingBedNum}} </div> <div v-for="(value, key) in monitorInfo.checkTypeBedInfo" :key="key"> - {{ mapCheckType.get(Number(key)) }} {{ value }} + {{ getCheckTypeName(Number(key)) }} {{ value }} </div> + <div>宸ヤ綅姒傚喌锛氬紑鏀剧殑宸ヤ綅 鏈夊尰鐢熷伐浣� 鍙備笌鍒嗘祦宸ヤ綅</div> + <div>妫�鏌ョ被鍨� 寮�鏀剧殑宸ヤ綅 (妫�鏌�/棰嗙敤 | 瀹夎) 鏈夊尰鐢熷伐浣� (妫�鏌�/棰嗙敤 | 瀹夎)</div> </el-aside> </el-container> </template> @@ -28,20 +31,23 @@ import { RoomApi, RoomVO, MonitorInfo } from '@/api/ecg/room' import { QueueApi } from '@/api/ecg/queue' import { getConfigKey } from '@/api/infra/config' -import {DICT_TYPE, getIntDictOptions} from "@/utils/dict"; +import {useCheckTypeStore} from "@/store/modules/checkType"; +import {getCheckTypeName} from "../../../utils/checkTypeFormatter"; defineOptions({ name: 'RoomSetting' }) const bedMap = ref() // 鍒楄〃鐨勬暟鎹� -let mapCheckType: Map<number, string> = new Map(); const openingPeriod = ref<string>('') const monitorInfo = ref<MonitorInfo>({ - queueNum: 0, - activeQueueNum: 0, + openingBedNum: 0, + docBedNum: 0, + routingBedNum: 0, openingFlag: 0, - checkTypeBedInfo: undefined + checkTypeBedInfo: {} }) + +const checkTypeStore = useCheckTypeStore(); const getOpeningPeriod = async () => { const data = await getConfigKey('ecg.openingtime') @@ -84,18 +90,9 @@ getMonitorInfo() } -const getCheckTypeList = () => { - const data = getIntDictOptions(DICT_TYPE.ECG_CHECK_TYPE) - console.info( data ) - data.forEach((checkTypeItem) => { - mapCheckType.set(checkTypeItem.value, checkTypeItem.label) - }) -} - /** 鍒濆鍖� **/ onMounted(() => { getList() - getCheckTypeList() getOpeningPeriod() getMonitorInfo() }) -- Gitblit v1.9.3