From 3b8457c9c63f0996d8dae63ac988f976da956d38 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 28 八月 2024 10:58:49 +0800
Subject: [PATCH] update

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

diff --git a/src/views/ecg/doctor/index.vue b/src/views/ecg/doctor/index.vue
index fb472b4..a19d272 100644
--- a/src/views/ecg/doctor/index.vue
+++ b/src/views/ecg/doctor/index.vue
@@ -19,6 +19,8 @@
     queuingNum: 0
 })
 
+let state: 'normal' | 'paused' = "normal";
+
 const list = ref<queueVO[]>([])
 
 const finishNextPatient = async () => {
@@ -45,6 +47,14 @@
     patientStat.value = data2
 }
 
+const pause = async () => {
+  state = 'paused'
+}
+
+const resume = async () => {
+  state = 'normal'
+}
+
 /** 鍒濆鍖� **/
 onMounted(() => {
     getPatientList()
@@ -68,6 +78,8 @@
     <el-container style="justify-content: center;">
       <el-button type="primary" @click="finishNextPatient">鍙彿</el-button>
       <el-button type="primary" @click="passNextPatient">杩囧彿</el-button>
+      <el-button v-if="state==='normal'" type="primary" @click="pause">鏆傚仠</el-button>
+      <el-button v-else type="primary" @click="resume">鎭㈠</el-button>
     </el-container>
   </el-container>
 </template>

--
Gitblit v1.9.3