eight
2024-09-06 8d0db4fe4f83eae33d42d81bdceb35bddbfed9ac
src/views/ecg/doctor/index.vue
@@ -4,7 +4,7 @@
import {DoctorApi, PatientStatisticVO, RoomBedVO} from '@/api/ecg/doctor';
import {useUserStore} from "@/store/modules/user";
import {QueueVO} from "@/api/ecg/queue";
import {ElMessage} from "element-plus";
import {ElNotification} from "element-plus";
const userStore = useUserStore();
@@ -51,6 +51,15 @@
}
const initLoad = async () => {
  if (roomBedVO.roomId == null) {
    ElNotification.error({
      message: '请重新就座!',
      type: 'info',
      duration: 3000 // 自动关闭时间,默认为3000ms
    })
    return
  }
  patientList.value = await DoctorApi.getPatientList(roomBedVO)
  patientStat.value = await DoctorApi.getPatientStatistic(roomBedVO)
  const queueVO2 = await DoctorApi.bedDoctorGet(roomBedVO)
@@ -84,7 +93,7 @@
/** 初始化 **/
onMounted(() => {
  console.info("onMounted - doctor " + userStore.isSetRoom)
  timerRunFlag = false
  bedControlFlag.value = true
  finishFlag.value = true
  passFlag.value = true
@@ -99,12 +108,6 @@
  } else {
    roomBedVO.roomId = null
    roomBedVO.bedNo = null
    ElMessage({
      message: '请先入座!',
      type: 'info',
      duration: 3000 // 自动关闭时间,默认为3000ms
    })
  }
  bedControlFlag.value = false
@@ -113,7 +116,6 @@
})
onUnmounted( () =>{
  console.info("onUnmounted - doctor")
  timerRunFlag = false
})