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/>
|
||||
</el-icon>
|
||||
</el-button>-->
|
||||
<el-button text @click="userStore.showHomeMsg=true">
|
||||
<!-- <el-button text @click="userStore.showHomeMsg=true">
|
||||
<el-badge is-dot>
|
||||
<el-icon>
|
||||
<Bell/>
|
||||
</el-icon>
|
||||
</el-badge>
|
||||
</el-button>
|
||||
</el-button>-->
|
||||
<el-button text @click="toggleFullscreen">
|
||||
<el-icon>
|
||||
<FullScreen/>
|
||||
|
|
|
@ -156,6 +156,10 @@ function showData(i: any) {
|
|||
remoteWsStore.setCurrentTaskIndex(i)
|
||||
currentIndex = remoteWsStore.getCurrentTaskIndex()
|
||||
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()
|
||||
}
|
||||
|
||||
|
|
|
@ -271,6 +271,12 @@ onUnmounted(() => {
|
|||
// 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.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() {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
</template>
|
||||
|
||||
<script lang='ts' setup>
|
||||
import { onMounted, ref } from 'vue'
|
||||
import {onMounted, onUnmounted, ref} from 'vue'
|
||||
import {useRouter} from 'vue-router'
|
||||
import RemoteDialog from './part/remote-dialog.vue'
|
||||
import RemotePart from './part/remote-part.vue'
|
||||
|
@ -43,6 +43,15 @@ onMounted(() => {
|
|||
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() {
|
||||
remoteWsStore.initRemoteTask()
|
||||
remotePartRef.value.showData(remoteWsStore.getCurrentTaskIndex());
|
||||
|
@ -51,8 +60,7 @@ function initRemoteTask() {
|
|||
const viewThumbnail = () => {
|
||||
router.push({
|
||||
path: '/remote-manage/remote-thumbnail',
|
||||
query: {
|
||||
}
|
||||
query: {}
|
||||
})
|
||||
}
|
||||
// 打开任务连接弹窗
|
||||
|
|
|
@ -2,15 +2,19 @@
|
|||
<el-scrollbar style="width: 100%;height: 100%;">
|
||||
<div class="remote-thumbnail-page">
|
||||
<div class="remote-box row1">
|
||||
<div class="remote-item" v-for="item in remoteTask.slice(0, 4)" :key="item.title" @click="openRemote(item)">
|
||||
<RemoteItemPart :ref="'remoteItemPartRef' + item.index" :index="item.index" @addLogAfter="addLogAfter">
|
||||
<div class="remote-item" v-for="item in remoteTask.slice(0, 4)" :key="item.title"
|
||||
@click="openRemote(item)">
|
||||
<RemoteItemPart :ref="'remoteItemPartRef' + item.index" :index="item.index"
|
||||
@addLogAfter="addLogAfter">
|
||||
</RemoteItemPart>
|
||||
</div>
|
||||
</div>
|
||||
<div class="remote-box row2">
|
||||
<div class="left-box">
|
||||
<div class="remote-item" v-for="item in remoteTask.slice(4)" :key="item.title" @click="openRemote(item)">
|
||||
<RemoteItemPart :ref="'remoteItemPartRef' + item.index" :index="item.index" @addLogAfter="addLogAfter">
|
||||
<div class="remote-item" v-for="item in remoteTask.slice(4)" :key="item.title"
|
||||
@click="openRemote(item)">
|
||||
<RemoteItemPart :ref="'remoteItemPartRef' + item.index" :index="item.index"
|
||||
@addLogAfter="addLogAfter">
|
||||
</RemoteItemPart>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -26,7 +30,7 @@
|
|||
</template>
|
||||
|
||||
<script lang='ts' setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import {onMounted, onUnmounted, ref} from 'vue';
|
||||
import {useRoute, useRouter} from 'vue-router';
|
||||
import RemoteItemPart from './part/remote-item-part.vue';
|
||||
import MessageItemPart from './part/message-item-part.vue';
|
||||
|
@ -42,6 +46,15 @@ onMounted(() => {
|
|||
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) => {
|
||||
remoteWsStore.setCurrentTaskIndex(params.index)
|
||||
router.push('/remote-manage/remote-manage');
|
||||
|
|
Loading…
Reference in New Issue
Block a user