From e41cb44dc302b51534036b3cf114dd2d5bc4f809 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期二, 29 九月 2026 14:32:49 +0800
Subject: [PATCH] 修改了数据采集
---
src/views/ecg/doctor/index.vue | 29 ++++++++++++++++++-----------
1 files changed, 18 insertions(+), 11 deletions(-)
diff --git a/src/views/ecg/doctor/index.vue b/src/views/ecg/doctor/index.vue
index b29a0c2..0db67bd 100644
--- a/src/views/ecg/doctor/index.vue
+++ b/src/views/ecg/doctor/index.vue
@@ -1,5 +1,11 @@
<!--璁惧棰嗙敤鎿嶄綔鐣岄潰-->
<script setup lang="ts">
+// 璁惧棰嗙敤椤点��
+// 鍘熸湰缂哄皯缁勪欢 name銆俴eep-alive 鐨� :include 渚濊禆銆愯矾鐢� name銆戝尮閰嶏紝
+// 鑰岃矾鐢� name 鍙栬彍鍗� system_menu(2812).component_name锛屾晠姝ゅ蹇呴』澹版槑涓斾繚鎸佷竴鑷达紝
+// 鍚﹀垯鍒囧洖鏍囩椤典細閲嶆柊鍔犺浇骞跺埛鏂版暟鎹��
+defineOptions({ name: 'doctor' })
+
import TitlePanel from "@/views/ecg/doctor/components/TitlePanel.vue";
import QueuePanel from "@/views/ecg/doctor/components/QueuePanel.vue";
import {DoctorApi, PatientStatisticVO, RoomBedVO} from '@/api/ecg/doctor';
@@ -18,10 +24,10 @@
opType: null
}
-const onStagePatient = ref<QueueVO>({
+let onStagePatient: QueueVO = {
bedNo: "", bookCheckType: 0, bookTimeslot: 0, expired: 0, id: 0, jumpFlag: 0, passed: 0,
patGender: 0, patId: "", patName: "", roomId: 0, roomName: "", seqNum: 0, status: 0
-})
+}
const patientStat = ref<PatientStatisticVO>({
finishedNum: 0,
@@ -48,7 +54,7 @@
getOnstagePatient()
// 鐢ㄤ簬瑙e喅 宸︿晶閲嶇疆鍚� 鑾峰彇褰撳墠 銆愬氨璇婁腑銆戞偅鑰�
- setOnStagePatient(onStagePatient.value)
+ setOnStagePatient(onStagePatient)
} finally {
finishFlag.value = false
}
@@ -70,11 +76,11 @@
}
const getOnstagePatient = () => {
- const tempPatient : QueueVO | undefined = patientList.value.find(item => item.status === 30)
- if (undefined === tempPatient) {
+ const tempPatient : QueueVO | undefined | null = patientList.value.find(item => item.status === 30)
+ if (tempPatient == null) {
// setOnStagePatient(undefined)
- } else if (tempPatient.patId !== onStagePatient.value.patId) {
- onStagePatient.value = tempPatient
+ } else if (tempPatient.patId !== onStagePatient.patId) {
+ onStagePatient = tempPatient
setOnStagePatient(tempPatient)
}
}
@@ -152,10 +158,11 @@
})
const onEventDevReady = () => {
- //console.info("onDevRentPanelEvent...")
- onStagePatient.value.patId = ""
+ onStagePatient = {
+ bedNo: "", bookCheckType: 0, bookTimeslot: 0, expired: 0, id: 0, jumpFlag: 0, passed: 0,
+ patGender: 0, patId: "", patName: "", roomId: 0, roomName: "", seqNum: 0, status: 0
+ }
- console.info("autoCall " + autoCall.value)
if (autoCall.value) {
finishNextPatient()
} else {
@@ -169,7 +176,7 @@
/** 鎮h�呭彉鏇存搷浣� */
const devReadyPanelRef = ref()
-const setOnStagePatient = (tempPatient: QueueVO | undefined) => {
+const setOnStagePatient = (tempPatient: QueueVO | undefined | null) => {
devReadyPanelRef.value.setPatient(tempPatient)
}
--
Gitblit v1.9.3