| | |
| | | <ScheduledTaskDialog ref="scheduledTaskDialogRef" /> |
| | | <!-- 定时任务提醒组件 --> |
| | | <TaskAlert ref="taskAlertRef" @close="taskAlaetClose" /> |
| | | <!-- 用户登录组件 --> |
| | | <LoginDialog ref="loginDialogRef" /> |
| | | </template> |
| | | |
| | | <script lang="ts" setup name="Header"> |
| | |
| | | () => import("./ScheduledTask.vue") |
| | | ); |
| | | const TaskAlert = defineAsyncComponent(() => import("./TaskAlart.vue")); |
| | | const LoginDialog = defineAsyncComponent(() => import('./Login/index.vue')); |
| | | |
| | | import atRegularTimeImg from "../../../../img/dingshi.png"; |
| | | import setUpImg from "../../../../img/shezhi.png"; |
| | |
| | | import { useBedsideAuxiliaryScreenStore } from "@/store/bedsideAuxiliaryScreen"; |
| | | import { EPatForm, EPageType } from "@/store/type/bedsideAuxiliaryScreen.type"; |
| | | import { ElMessage } from "element-plus"; |
| | | import { maskName } from '@/utils/utils'; |
| | | |
| | | const bedsideAuxiliaryScreenStore = useBedsideAuxiliaryScreenStore(); |
| | | |
| | |
| | | const settingDeviceDialogRef = ref<any>(null); |
| | | const scheduledTaskDialogRef = ref<any>(null); |
| | | const taskAlertRef = ref<any>(null); |
| | | const loginDialogRef = ref<any>(null); |
| | | |
| | | const countdown = ref(null); // 定时任务的倒计时 |
| | | const isTaskAlartIsOpen = ref(false); // 定时任务的提醒弹框是否显示 |
| | |
| | | return bedsideAuxiliaryScreenStore.deviceData.pageType; |
| | | }); |
| | | |
| | | |
| | | const patientInfo = computed(() => { |
| | | return { |
| | | patientName: bedsideAuxiliaryScreenStore.deviceData.patientName, |
| | | patientName: bedsideAuxiliaryScreenStore.deviceData.customConfiguration.患者信息是否加密显示 === 1 ? maskName(bedsideAuxiliaryScreenStore.deviceData.patientName) : bedsideAuxiliaryScreenStore.deviceData.patientName, |
| | | patientPhone: bedsideAuxiliaryScreenStore.deviceData.patientPhone, |
| | | age: bedsideAuxiliaryScreenStore.deviceData.age, |
| | | gender: bedsideAuxiliaryScreenStore.deviceData.gender, |
| | |
| | | }; |
| | | |
| | | const openLoginDialog = () => { |
| | | ElMessage({ |
| | | message: "功能开发中,敬请期待!", |
| | | type: "warning", |
| | | }); |
| | | if ( |
| | | !bedsideAuxiliaryScreenStore.deviceCode || |
| | | !bedsideAuxiliaryScreenStore.deviceData.deviceCode |
| | | ) |
| | | return ElMessage.warning("未初始化或正在进行初始化操作中"); |
| | | loginDialogRef.value.openDialog(); |
| | | }; |
| | | |
| | | onUnmounted(() => { |