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 | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/views/ecg/doctor/index.vue b/src/views/ecg/doctor/index.vue index 47ee8de..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() @@ -66,8 +76,10 @@ </el-aside> </el-container> <el-container style="justify-content: center;"> - <el-button type="primary" @click="finishNextPatient">瀹屾垚涓嬩竴浣�</el-button> - <el-button type="primary" @click="passNextPatient">杩囧彿涓嬩竴浣�</el-button> + <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