From 6f251b714260edadcaf82fc7bcc4e7c40491d64f Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期二, 20 八月 2024 18:04:45 +0800
Subject: [PATCH] update

---
 src/views/ecg/doctor/index.vue |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/views/ecg/doctor/index.vue b/src/views/ecg/doctor/index.vue
index 3189eb1..a62554d 100644
--- a/src/views/ecg/doctor/index.vue
+++ b/src/views/ecg/doctor/index.vue
@@ -14,19 +14,24 @@
 
 const list = ref<queueVO[]>([])
 
-const nextPatient = async () => {
-  const data = await DoctorApi.nextPatient(roomBedVO)
+const finishNextPatient = async () => {
+  const data = await DoctorApi.finishNextPatient(roomBedVO)
   list.value = data
 }
 
-const finishPatient = async () => {
-    const data = await DoctorApi.finishPatient(roomBedVO)
+const passNextPatient = async () => {
+    const data = await DoctorApi.passNextPatient(roomBedVO)
+    list.value = data
+}
+
+const getPatientList = async () => {
+    const data = await DoctorApi.getPatientList(roomBedVO)
     list.value = data
 }
 
 /** 鍒濆鍖� **/
 onMounted(() => {
-  nextPatient()
+    getPatientList()
 })
 
 </script>
@@ -45,8 +50,8 @@
       </el-aside>
     </el-container>
     <el-container style="justify-content: center;">
-      <el-button type="primary" @click="finishPatient">瀹屾垚</el-button>
-      <el-button type="primary" @click="nextPatient">涓嬩竴浣�</el-button>
+      <el-button type="primary" @click="finishNextPatient">瀹屾垚涓嬩竴浣�</el-button>
+      <el-button type="primary" @click="passNextPatient">杩囧彿涓嬩竴浣�</el-button>
     </el-container>
   </el-container>
 </template>

--
Gitblit v1.9.3