From a986a8d6fb5e44f7044469f5f420ce0d7b5bf235 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 26 十一月 2025 11:36:02 +0800
Subject: [PATCH] 11
---
src/views/ecg/room/RoomSetting.vue | 31 +++++++++++++------------------
1 files changed, 13 insertions(+), 18 deletions(-)
diff --git a/src/views/ecg/room/RoomSetting.vue b/src/views/ecg/room/RoomSetting.vue
index 72de651..a16a12c 100644
--- a/src/views/ecg/room/RoomSetting.vue
+++ b/src/views/ecg/room/RoomSetting.vue
@@ -15,11 +15,13 @@
</div>
</el-main>
<el-aside width="250px">
- <div>寮�璇婃椂闂达細{{ openingPeriod }} {{ monitorInfo.openingFlag }} </div>
- <div>宸ヤ綅姒傚喌锛� {{monitorInfo.queueNum}} {{monitorInfo.activeQueueNum}} {{monitorInfo.priorityQueueNum}} </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>
@@ -29,21 +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,
- priorityQueueNum: 0,
+ openingBedNum: 0,
+ docBedNum: 0,
+ routingBedNum: 0,
openingFlag: 0,
- checkTypeBedInfo: undefined
+ checkTypeBedInfo: {}
})
+
+const checkTypeStore = useCheckTypeStore();
const getOpeningPeriod = async () => {
const data = await getConfigKey('ecg.openingtime')
@@ -86,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