From 660f9e6478056aff8a52149c1bc1a0491d53ac71 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 30 十月 2024 18:12:58 +0800
Subject: [PATCH] 标记当前工作 是否 允许当前页面操作
---
src/views/ecg/doctor/components/TitlePanel.vue | 28 ++++++++++++++++++++--------
src/views/ecg/doctor/DevInstall.vue | 8 ++++++--
src/views/ecg/doctor/Routine.vue | 8 ++++++--
src/views/ecg/doctor/index.vue | 8 ++++++--
src/store/modules/user.ts | 6 +++++-
src/assets/imgs/error.png | 0
src/api/ecg/doctor/index.ts | 2 ++
7 files changed, 45 insertions(+), 15 deletions(-)
diff --git a/src/api/ecg/doctor/index.ts b/src/api/ecg/doctor/index.ts
index 889a2f8..2ccd312 100644
--- a/src/api/ecg/doctor/index.ts
+++ b/src/api/ecg/doctor/index.ts
@@ -4,6 +4,8 @@
roomId: number | null // 璇婂缂栧彿
roomName: string | null
bedNo: string | null // 璇婄枟搴婄紪鍙�
+ checkTypes: number[] | null,
+ opType: number | null
}
export interface PatientVO {
diff --git a/src/assets/imgs/error.png b/src/assets/imgs/error.png
new file mode 100644
index 0000000..4ee1253
--- /dev/null
+++ b/src/assets/imgs/error.png
Binary files differ
diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index a611f6c..a857eb2 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -46,7 +46,9 @@
bedNo: null,
status: null,
docId: null,
- docName: null
+ docName: null,
+ checkTypes: null,
+ opType: null
}
}),
getters: {
@@ -97,6 +99,8 @@
this.room!.status = room.status
this.room!.docId = room.docId
this.room!.docName = room.docName
+ this.room!.checkTypes = room.checkTypes
+ this.room!.opType = room.opType
this.isSetRoom = true
// 鏇存柊 cache
diff --git a/src/views/ecg/doctor/DevInstall.vue b/src/views/ecg/doctor/DevInstall.vue
index 4597772..0edafda 100644
--- a/src/views/ecg/doctor/DevInstall.vue
+++ b/src/views/ecg/doctor/DevInstall.vue
@@ -12,7 +12,9 @@
const roomBedVO = ref<RoomBedVO>({
roomId: null,
roomName: null,
- bedNo: null
+ bedNo: null,
+ checkTypes: null,
+ opType: null
})
const installingPatient = ref<QueueVO>({
@@ -129,6 +131,8 @@
roomBedVO.value.roomId = userStore.room!.roomId
roomBedVO.value.roomName = userStore.room!.roomName
roomBedVO.value.bedNo = userStore.room!.bedNo
+ roomBedVO.value.checkTypes = userStore.room!.checkTypes
+ roomBedVO.value.opType = userStore.room!.opType
timerRunFlag = true
doctorTimer()
@@ -169,7 +173,7 @@
<template>
<el-container>
<el-header style="background-color: var(--el-color-primary-light-7); font-size: 24px">
- <TitlePanel :titleType=1 :room="roomBedVO" :patientStatistic="patientStat" />
+ <TitlePanel :titleType=2 :room="roomBedVO" :patientStatistic="patientStat" />
</el-header>
<el-container style="height: 100%;">
<el-main style="border: solid var(--el-color-primary-light-7)">
diff --git a/src/views/ecg/doctor/Routine.vue b/src/views/ecg/doctor/Routine.vue
index 00d672d..b0b8fc2 100644
--- a/src/views/ecg/doctor/Routine.vue
+++ b/src/views/ecg/doctor/Routine.vue
@@ -13,7 +13,9 @@
const roomBedVO: RoomBedVO = {
roomId: null,
roomName: null,
- bedNo: null
+ bedNo: null,
+ checkTypes: null,
+ opType: null
}
const onStagePatient = ref<QueueVO>({
@@ -129,6 +131,8 @@
roomBedVO.roomId = userStore.room!.roomId
roomBedVO.roomName = userStore.room!.roomName
roomBedVO.bedNo = userStore.room!.bedNo
+ roomBedVO.checkTypes = userStore.room!.checkTypes
+ roomBedVO.opType = userStore.room!.opType
timerRunFlag = true
doctorTimer()
@@ -167,7 +171,7 @@
<template>
<el-container>
<el-header style="background-color: var(--el-color-primary-light-7); font-size: 24px">
- <TitlePanel :titleType=2 :room="roomBedVO" :patientStatistic="patientStat" />
+ <TitlePanel :titleType=0 :room="roomBedVO" :patientStatistic="patientStat" />
</el-header>
<el-container style="height: 100%;">
<el-main style="border: solid var(--el-color-primary-light-7)">
diff --git a/src/views/ecg/doctor/components/TitlePanel.vue b/src/views/ecg/doctor/components/TitlePanel.vue
index 80eb826..ace710a 100644
--- a/src/views/ecg/doctor/components/TitlePanel.vue
+++ b/src/views/ecg/doctor/components/TitlePanel.vue
@@ -1,7 +1,7 @@
<script setup lang="ts">
import {defineComponent, PropType} from "vue";
import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor";
-import {isNumber} from "@/utils/is";
+import {useCheckTypeStore} from "@/store/modules/checkType";
defineComponent({
name: 'TitlePanel'
@@ -19,29 +19,41 @@
}
})
+const checkTypeStore = useCheckTypeStore();
+
</script>
<template>
<div class="mytitle">
<div>
- {{room.roomName || ''}} {{room.bedNo || ''}}
+ <img v-if="titleType !== room.opType"
+ src="@/assets/imgs/error.png"
+ alt="绂佹璁块棶鏈〉闈紝褰撳墠宸ヤ綅涓嶇鍚堣姹�"
+ width="20px"
+ />
+ {{room.roomName || ''}} {{room.bedNo || ''}} {{room.opType === 1?"棰嗙敤":""}} {{room.opType === 2?"瀹夎":""}}
+ <div>
+ <span v-for="(checkType, subIndex) in room.checkTypes" :key="subIndex">
+ {{checkTypeStore.getCheckTypeName(checkType)}}
+ </span>
+ </div>
</div>
<div v-if="titleType === 0">
- 宸插彂鏀緖{patientStatistic.receivedNum??0}}
+ 宸叉鏌{patientStatistic.finishedNum??0}}
鍑嗗涓瓄{patientStatistic.readyNum??0}}
杩囧彿{{patientStatistic.passedNum??0}}
鎺掗槦涓瓄{patientStatistic.queuingNum??0}}
</div>
<div v-if="titleType === 1">
- 宸茶鏈簕{patientStatistic.finishedNum??0}}
- 寰呰鏈簕{patientStatistic.receivedNum??0}}
- </div>
- <div v-if="titleType === 2">
- 宸叉鏌{patientStatistic.finishedNum??0}}
+ 宸插彂鏀緖{patientStatistic.receivedNum??0}}
鍑嗗涓瓄{patientStatistic.readyNum??0}}
杩囧彿{{patientStatistic.passedNum??0}}
鎺掗槦涓瓄{patientStatistic.queuingNum??0}}
</div>
+ <div v-if="titleType === 2">
+ 宸茶鏈簕{patientStatistic.finishedNum??0}}
+ 寰呰鏈簕{patientStatistic.receivedNum??0}}
+ </div>
</div>
</template>
diff --git a/src/views/ecg/doctor/index.vue b/src/views/ecg/doctor/index.vue
index f1a8328..c0f8906 100644
--- a/src/views/ecg/doctor/index.vue
+++ b/src/views/ecg/doctor/index.vue
@@ -12,7 +12,9 @@
const roomBedVO: RoomBedVO = {
roomId: null,
roomName: null,
- bedNo: null
+ bedNo: null,
+ checkTypes: null,
+ opType: null
}
const onStagePatient = ref<QueueVO>({
@@ -128,6 +130,8 @@
roomBedVO.roomId = userStore.room!.roomId
roomBedVO.roomName = userStore.room!.roomName
roomBedVO.bedNo = userStore.room!.bedNo
+ roomBedVO.checkTypes = userStore.room!.checkTypes
+ roomBedVO.opType = userStore.room!.opType
timerRunFlag = true
doctorTimer()
@@ -166,7 +170,7 @@
<template>
<el-container>
<el-header style="background-color: var(--el-color-primary-light-7); font-size: 24px">
- <TitlePanel :titleType=0 :room="roomBedVO" :patientStatistic="patientStat" />
+ <TitlePanel :titleType=1 :room="roomBedVO" :patientStatistic="patientStat" />
</el-header>
<el-container style="height: 100%;">
<el-main style="border: solid var(--el-color-primary-light-7)">
--
Gitblit v1.9.3