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/api/ecg/room/index.ts | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/api/ecg/room/index.ts b/src/api/ecg/room/index.ts index 1d1d1c1..d78f8a1 100644 --- a/src/api/ecg/room/index.ts +++ b/src/api/ecg/room/index.ts @@ -10,14 +10,16 @@ status: number | null //寮�璇婄姸鎬� 0-鍏抽棴 1-鍏抽棴涓� 10-宸插紑閫� 20-鏈夊尰鐢� 30-鏆傚仠 docId: number | null docName: string | null - checkTypes: number[] + checkTypes: number[] | null + opType: number | null } export interface MonitorInfo { - queueNum : number - activeQueueNum : number - priorityQueueNum : number + openingBedNum : number + docBedNum : number + routingBedNum : number openingFlag : number + checkTypeBedInfo: object } // 璇婂鍜岃瘖鐤楀簥 API @@ -33,8 +35,12 @@ }, // 鏌ヨ璇婂鍜岃瘖鐤楀簥璇︽儏 - getRoomByIP: async () => { - return await request.get({ url: `/clinic/room/get-room-by-ip`}) + getRoomByIP: async (roomId :number) => { + if (roomId == null || roomId === 0) { + return await request.get({url: `/clinic/room/get-room-by-ip`}) + } + + return await request.get({url: `/clinic/room/get-room-by-ip?roomId=` + roomId}) }, // 鏂板璇婂鍜岃瘖鐤楀簥 -- Gitblit v1.9.3