mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2026-06-12 13:31:47 +08:00
修复,多个连接,状态提示错误, 并且去除索引
This commit is contained in:
parent
003fd7881c
commit
5b1b70aa42
|
|
@ -265,7 +265,7 @@ export const useRemoteWsStore = defineStore("remoteWs", {
|
||||||
patient['vitalWS'] = new WebSocket(vitalUrl);
|
patient['vitalWS'] = new WebSocket(vitalUrl);
|
||||||
patient['vitalWS'].onopen = () => {
|
patient['vitalWS'].onopen = () => {
|
||||||
if (index === this.currentTaskIndex) {
|
if (index === this.currentTaskIndex) {
|
||||||
ElMessage.info("远程查看,生命体征数据连接成功");
|
ElMessage.info("远程查看" + (index + 1) + ",生命体征数据连接成功")
|
||||||
}
|
}
|
||||||
patient['vitalWS'].send(JSON.stringify({
|
patient['vitalWS'].send(JSON.stringify({
|
||||||
patientName: name,
|
patientName: name,
|
||||||
|
|
@ -278,7 +278,8 @@ export const useRemoteWsStore = defineStore("remoteWs", {
|
||||||
|
|
||||||
patient['vitalWS'].onerror = () => {
|
patient['vitalWS'].onerror = () => {
|
||||||
if (index === this.currentTaskIndex) {
|
if (index === this.currentTaskIndex) {
|
||||||
ElMessage.error("远程管理,生命体征数据出错");
|
// ElMessage.error("远程查看" + (index + 1) + "生命体征数据出错")
|
||||||
|
ElMessage.error("远程查看,生命体征数据出错")
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -436,7 +437,7 @@ export const useRemoteWsStore = defineStore("remoteWs", {
|
||||||
patient['chatWS'] = new WebSocket(chatUrl);
|
patient['chatWS'] = new WebSocket(chatUrl);
|
||||||
patient['chatWS'].onopen = () => {
|
patient['chatWS'].onopen = () => {
|
||||||
if (index === this.currentTaskIndex) {
|
if (index === this.currentTaskIndex) {
|
||||||
ElMessage.info("远程查看,通讯连接成功");
|
ElMessage.info("远程查看" + (index + 1) + ",通讯连接成功")
|
||||||
}
|
}
|
||||||
patient['chatWS'].send(JSON.stringify({
|
patient['chatWS'].send(JSON.stringify({
|
||||||
patientName: name,
|
patientName: name,
|
||||||
|
|
|
||||||
|
|
@ -376,8 +376,8 @@ const subscribeChat = () => {
|
||||||
messageList.value = msg.history;
|
messageList.value = msg.history;
|
||||||
}
|
}
|
||||||
if (msg.msgType == "destroy") {
|
if (msg.msgType == "destroy") {
|
||||||
// ElMessageBox.confirm('远程查看' + (currentIndex + 1) + '已断开与手术室连接', '提示', {
|
ElMessageBox.confirm('远程查看' + (currentIndex + 1) + '已断开与手术室连接', '提示', {
|
||||||
ElMessageBox.confirm('远程查看' + '已断开与手术室连接', '提示', {
|
// ElMessageBox.confirm('远程查看' + '已断开与手术室连接', '提示', {
|
||||||
confirmButtonText: '确认',
|
confirmButtonText: '确认',
|
||||||
type: 'info'
|
type: 'info'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user