From 97fe4cae358c8ce65bf71405795dd0f6a841322f Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 20 九月 2024 14:25:19 +0800
Subject: [PATCH] 过号点击后 立即更新
---
src/views/ecg/doctor/index.vue | 6 +++++-
src/views/ecg/doctor/components/QueuePanel.vue | 12 +++++++++---
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/views/ecg/doctor/components/QueuePanel.vue b/src/views/ecg/doctor/components/QueuePanel.vue
index 6f82075..89fdd55 100644
--- a/src/views/ecg/doctor/components/QueuePanel.vue
+++ b/src/views/ecg/doctor/components/QueuePanel.vue
@@ -8,6 +8,8 @@
name: 'QueuePanel'
})
+const emit = defineEmits(['event_RecallFinish']) // 瀹氫箟 success 浜嬩欢锛岀敤浜庢搷浣滄垚鍔熷悗鐨勫洖璋�
+
const message = useMessage() // 娑堟伅寮圭獥
const props = defineProps({
@@ -32,6 +34,7 @@
}
const data = await DoctorApi.recallPatient(patientVO);
+ emit("event_RecallFinish")
message.info(data)
}
@@ -39,10 +42,9 @@
<template>
<div v-for="(item, index) in queue" :key="index">
- {{item.patName}}{{item.passed === 0 ? "":"*"}}
+ <span style="display:inline-block; width:70px;"> {{item.patName}}{{item.passed === 0 ? "":"*"}} </span>
<dict-tag :type="DICT_TYPE.SYSTEM_USER_SEX" :value="item.patGender" />
- {{item.roomName}}
- {{item.bedNo}}
+<!-- {{item.roomName}} {{item.bedNo}}-->
<dict-tag :type="DICT_TYPE.ECG_CHECK_TYPE" :value="item.bookCheckType" />
<dict-tag :type="DICT_TYPE.ECG_QUEUE_STATUS" :value="item.status" />
<el-button v-if="item.status === 5" @click="recall(item)"> 鍙洖 </el-button>
@@ -50,5 +52,9 @@
</template>
<style scoped lang="scss">
+div {
+ padding-left: 5px;
+ padding-bottom: 5px;
+}
</style>
diff --git a/src/views/ecg/doctor/index.vue b/src/views/ecg/doctor/index.vue
index 9dd31e2..022f094 100644
--- a/src/views/ecg/doctor/index.vue
+++ b/src/views/ecg/doctor/index.vue
@@ -146,6 +146,10 @@
// console.info("onDevRentPanelEvent...")
}
+const onEventRecallFinish = () => {
+ initLoad()
+}
+
/** 鎮h�呭彉鏇存搷浣� */
const devInstallPanelRef = ref()
const setOnStagePatient = (tempPatient: QueueVO | undefined) => {
@@ -164,7 +168,7 @@
<DevInstallPanel ref="devInstallPanelRef" @success="onEvent"/>
</el-main>
<el-aside width="400px" style="border: solid var(--el-color-primary-light-7)">
- <QueuePanel :queue="patientList"/>
+ <QueuePanel :queue="patientList" @event_RecallFinish="onEventRecallFinish"/>
</el-aside>
</el-container>
<el-container class="right-bottom">
--
Gitblit v1.9.3