eight
2024-08-28 3b8457c9c63f0996d8dae63ac988f976da956d38
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>