| | |
| | | queuingNum: 0 |
| | | }) |
| | | |
| | | let state: 'normal' | 'paused' = "normal"; |
| | | |
| | | const list = ref<queueVO[]>([]) |
| | | |
| | | const finishNextPatient = async () => { |
| | |
| | | patientStat.value = data2 |
| | | } |
| | | |
| | | const pause = async () => { |
| | | state = 'paused' |
| | | } |
| | | |
| | | const resume = async () => { |
| | | state = 'normal' |
| | | } |
| | | |
| | | /** 初始化 **/ |
| | | onMounted(() => { |
| | | getPatientList() |
| | |
| | | <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> |