mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 13:04:57 +08:00
远程管理错误修复
This commit is contained in:
parent
ce62495c16
commit
69c6cd10f7
|
@ -22,13 +22,13 @@
|
||||||
<Search/>
|
<Search/>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</el-button>-->
|
</el-button>-->
|
||||||
<el-button text @click="userStore.showHomeMsg=true">
|
<!-- <el-button text @click="userStore.showHomeMsg=true">
|
||||||
<el-badge is-dot>
|
<el-badge is-dot>
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<Bell/>
|
<Bell/>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</el-badge>
|
</el-badge>
|
||||||
</el-button>
|
</el-button>-->
|
||||||
<el-button text @click="toggleFullscreen">
|
<el-button text @click="toggleFullscreen">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<FullScreen/>
|
<FullScreen/>
|
||||||
|
|
|
@ -156,6 +156,10 @@ function showData(i: any) {
|
||||||
remoteWsStore.setCurrentTaskIndex(i)
|
remoteWsStore.setCurrentTaskIndex(i)
|
||||||
currentIndex = remoteWsStore.getCurrentTaskIndex()
|
currentIndex = remoteWsStore.getCurrentTaskIndex()
|
||||||
remoteItem.value = remoteWsStore.getRemoteTask()[currentIndex]
|
remoteItem.value = remoteWsStore.getRemoteTask()[currentIndex]
|
||||||
|
currentException = {}
|
||||||
|
if (remoteItem.value && remoteItem.value.patient) {
|
||||||
|
remoteWsStore.createVital(remoteItem.value.patient, remoteItem.value.patientId, remoteItem.value.date, currentIndex)
|
||||||
|
}
|
||||||
getData()
|
getData()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -271,6 +271,12 @@ onUnmounted(() => {
|
||||||
// remoteWsStore.unsubscribeMedicine(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, index);
|
// remoteWsStore.unsubscribeMedicine(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, index);
|
||||||
remoteWsStore.unsubscribeVital(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, currentIndex);
|
remoteWsStore.unsubscribeVital(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, currentIndex);
|
||||||
remoteWsStore.disconnectChat(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, currentIndex)
|
remoteWsStore.disconnectChat(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, currentIndex)
|
||||||
|
if (!router.currentRoute.value.path.startsWith("/remote-manage/")) {
|
||||||
|
const tasks: any = remoteWsStore.getRemoteTask()
|
||||||
|
tasks.forEach((task: any) => {
|
||||||
|
remoteWsStore.disconnect(task.patient, task.patientId, task.date, task.index)
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
function subscribeWS() {
|
function subscribeWS() {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="header-box">
|
<div class="header-box">
|
||||||
<div class="thumbnail" @click="viewThumbnail">
|
<div class="thumbnail" @click="viewThumbnail">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<Menu />
|
<Menu/>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span>缩略图</span>
|
<span>缩略图</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,23 +15,23 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="content-box">
|
<div class="content-box">
|
||||||
<div class="remote-box">
|
<div class="remote-box">
|
||||||
<RemotePart ref="remotePartRef" @addLogAfter="addLogAfter" @breakRemote="breakRemote" />
|
<RemotePart ref="remotePartRef" @addLogAfter="addLogAfter" @breakRemote="breakRemote"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="message-box">
|
<div class="message-box">
|
||||||
<MessagePart ref="messagePartRef" />
|
<MessagePart ref="messagePartRef"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<RemoteDialog ref="remoteDialogRef" @confirmRemote="confirmRemote" @errorRemote="errorRemote" />
|
<RemoteDialog ref="remoteDialogRef" @confirmRemote="confirmRemote" @errorRemote="errorRemote"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang='ts' setup>
|
<script lang='ts' setup>
|
||||||
import { onMounted, ref } from 'vue'
|
import {onMounted, onUnmounted, ref} from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import {useRouter} from 'vue-router'
|
||||||
import RemoteDialog from './part/remote-dialog.vue'
|
import RemoteDialog from './part/remote-dialog.vue'
|
||||||
import RemotePart from './part/remote-part.vue'
|
import RemotePart from './part/remote-part.vue'
|
||||||
import MessagePart from './part/message-part.vue'
|
import MessagePart from './part/message-part.vue'
|
||||||
import { useRemoteWsStore } from "@/stores/remote-ws-store";
|
import {useRemoteWsStore} from "@/stores/remote-ws-store";
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const remotePartRef = ref()
|
const remotePartRef = ref()
|
||||||
|
@ -43,6 +43,15 @@ onMounted(() => {
|
||||||
initRemoteTask()
|
initRemoteTask()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
onUnmounted(() => {
|
||||||
|
if (!router.currentRoute.value.path.startsWith("/remote-manage/")) {
|
||||||
|
const tasks: any = remoteWsStore.getRemoteTask()
|
||||||
|
tasks.forEach((task: any) => {
|
||||||
|
remoteWsStore.disconnect(task.patient, task.patientId, task.date, task.index)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
function initRemoteTask() {
|
function initRemoteTask() {
|
||||||
remoteWsStore.initRemoteTask()
|
remoteWsStore.initRemoteTask()
|
||||||
remotePartRef.value.showData(remoteWsStore.getCurrentTaskIndex());
|
remotePartRef.value.showData(remoteWsStore.getCurrentTaskIndex());
|
||||||
|
@ -51,8 +60,7 @@ function initRemoteTask() {
|
||||||
const viewThumbnail = () => {
|
const viewThumbnail = () => {
|
||||||
router.push({
|
router.push({
|
||||||
path: '/remote-manage/remote-thumbnail',
|
path: '/remote-manage/remote-thumbnail',
|
||||||
query: {
|
query: {}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 打开任务连接弹窗
|
// 打开任务连接弹窗
|
||||||
|
@ -133,7 +141,7 @@ const addLogAfter = () => {
|
||||||
font-size: 1.4em;
|
font-size: 1.4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
&>span {
|
& > span {
|
||||||
display: none;
|
display: none;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
@ -144,7 +152,7 @@ const addLogAfter = () => {
|
||||||
width: 160px;
|
width: 160px;
|
||||||
transition: all .3s;
|
transition: all .3s;
|
||||||
|
|
||||||
&>span {
|
& > span {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,15 +2,19 @@
|
||||||
<el-scrollbar style="width: 100%;height: 100%;">
|
<el-scrollbar style="width: 100%;height: 100%;">
|
||||||
<div class="remote-thumbnail-page">
|
<div class="remote-thumbnail-page">
|
||||||
<div class="remote-box row1">
|
<div class="remote-box row1">
|
||||||
<div class="remote-item" v-for="item in remoteTask.slice(0, 4)" :key="item.title" @click="openRemote(item)">
|
<div class="remote-item" v-for="item in remoteTask.slice(0, 4)" :key="item.title"
|
||||||
<RemoteItemPart :ref="'remoteItemPartRef' + item.index" :index="item.index" @addLogAfter="addLogAfter">
|
@click="openRemote(item)">
|
||||||
|
<RemoteItemPart :ref="'remoteItemPartRef' + item.index" :index="item.index"
|
||||||
|
@addLogAfter="addLogAfter">
|
||||||
</RemoteItemPart>
|
</RemoteItemPart>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="remote-box row2">
|
<div class="remote-box row2">
|
||||||
<div class="left-box">
|
<div class="left-box">
|
||||||
<div class="remote-item" v-for="item in remoteTask.slice(4)" :key="item.title" @click="openRemote(item)">
|
<div class="remote-item" v-for="item in remoteTask.slice(4)" :key="item.title"
|
||||||
<RemoteItemPart :ref="'remoteItemPartRef' + item.index" :index="item.index" @addLogAfter="addLogAfter">
|
@click="openRemote(item)">
|
||||||
|
<RemoteItemPart :ref="'remoteItemPartRef' + item.index" :index="item.index"
|
||||||
|
@addLogAfter="addLogAfter">
|
||||||
</RemoteItemPart>
|
</RemoteItemPart>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,11 +30,11 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang='ts' setup>
|
<script lang='ts' setup>
|
||||||
import { onMounted, ref } from 'vue';
|
import {onMounted, onUnmounted, ref} from 'vue';
|
||||||
import { useRoute, useRouter } from 'vue-router';
|
import {useRoute, useRouter} from 'vue-router';
|
||||||
import RemoteItemPart from './part/remote-item-part.vue';
|
import RemoteItemPart from './part/remote-item-part.vue';
|
||||||
import MessageItemPart from './part/message-item-part.vue';
|
import MessageItemPart from './part/message-item-part.vue';
|
||||||
import { useRemoteWsStore } from "@/stores/remote-ws-store";
|
import {useRemoteWsStore} from "@/stores/remote-ws-store";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
@ -42,6 +46,15 @@ onMounted(() => {
|
||||||
remoteTask.value = remoteWsStore.getRemoteTask();
|
remoteTask.value = remoteWsStore.getRemoteTask();
|
||||||
})
|
})
|
||||||
|
|
||||||
|
onUnmounted(() => {
|
||||||
|
if (!router.currentRoute.value.path.startsWith("/remote-manage/")) {
|
||||||
|
const tasks: any = remoteWsStore.getRemoteTask()
|
||||||
|
tasks.forEach((task: any) => {
|
||||||
|
remoteWsStore.disconnect(task.patient, task.patientId, task.date, task.index)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const openRemote = (params: any) => {
|
const openRemote = (params: any) => {
|
||||||
remoteWsStore.setCurrentTaskIndex(params.index)
|
remoteWsStore.setCurrentTaskIndex(params.index)
|
||||||
router.push('/remote-manage/remote-manage');
|
router.push('/remote-manage/remote-manage');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user