From cc6d41fd69b56d9018fbaeaecf61b17ae1a25d62 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期五, 30 八月 2024 15:04:16 +0800 Subject: [PATCH] remove obsolete module --- src/views/ecg/doctor/index.vue | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/views/ecg/doctor/index.vue b/src/views/ecg/doctor/index.vue index 26536e9..bf00fc3 100644 --- a/src/views/ecg/doctor/index.vue +++ b/src/views/ecg/doctor/index.vue @@ -3,13 +3,13 @@ import QueuePanel from "@/views/ecg/doctor/components/QueuePanel.vue"; import {DoctorApi, PatientStatisticVO, RoomBedVO} from '@/api/ecg/doctor'; import {useUserStore} from "@/store/modules/user"; -import {queueApi, QueueVO} from "@/api/ecg/queue"; +import {QueueVO} from "@/api/ecg/queue"; const userStore = useUserStore(); const roomBedVO: RoomBedVO = { - roomId: userStore.room!.roomId, - bedNo: userStore.room!.bedNo + roomId: null, + bedNo: null } const patientStat = ref<PatientStatisticVO>({ @@ -45,7 +45,7 @@ const initLoad = async () => { list.value = await DoctorApi.getPatientList(roomBedVO) patientStat.value = await DoctorApi.getPatientStatistic(roomBedVO) - const queueVO2 = await queueApi.bedDoctorGet(roomBedVO) + const queueVO2 = await DoctorApi.bedDoctorGet(roomBedVO) if (queueVO2.status === 20) state.value = true else if (queueVO2.status === 30) @@ -55,10 +55,10 @@ const bedControl = async () => { bedControlFlag.value = true if (state.value) { - await queueApi.bedDoctorPause(roomBedVO) + await DoctorApi.bedDoctorPause(roomBedVO) state.value = false } else { - await queueApi.bedDoctorResume(roomBedVO) + await DoctorApi.bedDoctorResume(roomBedVO) state.value = true } bedControlFlag.value = false @@ -73,10 +73,18 @@ /** 鍒濆鍖� **/ onMounted(() => { - console.info("onMounted - doctor") + console.info("onMounted - doctor " + userStore.isSetRoom) bedControlFlag.value = true finishFlag.value = true passFlag.value = true + + if (userStore.isSetRoom) { + roomBedVO.roomId = userStore.room!.roomId + roomBedVO.bedNo = userStore.room!.bedNo + } else { + roomBedVO.roomId = null + roomBedVO.bedNo = null + } timerRunFlag = true doctorTimer() @@ -96,7 +104,7 @@ <template> <el-container> <el-header style="background-color: var(--el-color-primary-light-7); font-size: 24px"> - <TitlePanel :patientStatistic="patientStat" /> + <TitlePanel :room="roomBedVO" :patientStatistic="patientStat" /> </el-header> <el-container> <el-main> -- Gitblit v1.9.3