From c37525b62146fce9c2af0d34237686c3bc1636d9 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 02 九月 2024 16:38:52 +0800
Subject: [PATCH] 及时更新 开诊标记

---
 src/views/ecg/room/RoomStatusSetting.vue |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/views/ecg/room/RoomStatusSetting.vue b/src/views/ecg/room/RoomStatusSetting.vue
index a134e8e..f4b3712 100644
--- a/src/views/ecg/room/RoomStatusSetting.vue
+++ b/src/views/ecg/room/RoomStatusSetting.vue
@@ -8,6 +8,7 @@
   </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>
@@ -45,7 +46,13 @@
 }
 
 const startBiz = async () => {
-    await QueueApi.startBiz();
+  await RoomApi.startBiz();
+  getOpeningFlag()
+}
+
+const closeBiz = async () => {
+  await RoomApi.closeBiz();
+  getOpeningFlag()
 }
 
 const resetRoom = async () => {

--
Gitblit v1.9.3