mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2026-06-12 17:01:45 +08:00
fix: 问题优化
This commit is contained in:
parent
1e6116d01f
commit
9c58812420
|
|
@ -288,6 +288,7 @@ export const useRemoteWsStore = defineStore("remoteWs", {
|
||||||
date: date,
|
date: date,
|
||||||
msgType: "init"
|
msgType: "init"
|
||||||
}))
|
}))
|
||||||
|
this.loopSendMedicinePing(name,id,date,index,()=>{})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -47,10 +47,10 @@
|
||||||
</el-text>
|
</el-text>
|
||||||
</el-space>
|
</el-space>
|
||||||
<el-button color="#C77000" @click="viewPatientInfo">患者信息</el-button>
|
<el-button color="#C77000" @click="viewPatientInfo">患者信息</el-button>
|
||||||
|
<el-button type="text" color="#C77000">ping:{{timeDiffPing||'-'}}</el-button>
|
||||||
<el-button color="#C77000" @click="connectionUnity('1')" v-if="!whetherControl">连接远程控制</el-button>
|
<el-button color="#C77000" @click="connectionUnity('1')" v-if="!whetherControl">连接远程控制</el-button>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<el-button color="#C77000">已控制</el-button>
|
<el-button color="#C77000">已控制</el-button>
|
||||||
<el-button type="text" color="#C77000">ping:{{timeDiffPing||'-'}}</el-button>
|
|
||||||
<el-button color="#C77000" @click="connectionUnity('0')">断开远程控制</el-button>
|
<el-button color="#C77000" @click="connectionUnity('0')">断开远程控制</el-button>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -276,7 +276,7 @@ let currentDocMedicine: any;
|
||||||
const medicineSpeedTemp: any = {};
|
const medicineSpeedTemp: any = {};
|
||||||
const connectionUnityLoading=ref(false);
|
const connectionUnityLoading=ref(false);
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!currentRemote.value.isRemote) {
|
if (!currentRemote.value?.isRemote) {
|
||||||
router.replace('/remote-manage/remote-manage');
|
router.replace('/remote-manage/remote-manage');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -360,9 +360,6 @@ function createConnect() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function loopSendMedicinePing(){
|
function loopSendMedicinePing(){
|
||||||
if (!whetherControl.value) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
remoteWsStore.loopSendMedicinePing(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, currentRemote.value.index,(res:any)=>{})
|
remoteWsStore.loopSendMedicinePing(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, currentRemote.value.index,(res:any)=>{})
|
||||||
if (cachePingFirstTime.value) {
|
if (cachePingFirstTime.value) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user